git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Umlaut in filename makes troubles

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Dec 1, 2009, 18:48 UTC
Message-ID
<alpine.LNX.2.00.0912011325481.14365@iabervon.org>
In-Reply-To
<200912010815.14515.rick23@gmx.net>
On Tue, 1 Dec 2009, rick23@gmx.net wrote:
Show 12 quoted lines
> I have problems with my repository under slackware vs. windows. I 
> created a repo in linux and every time I use it under msysgit, the 
> files containing umlauts in the filename are marked as deleted (and 
> vice versa).
> 
> For instance: the repo perfectly synced under msysgit leads to:
> 
> user@sauron:/media/disk-2$ git status |grep Auszug
> #       deleted:    "trunk/007_Literatur/Auszug aus Ergonomische 
> Untersuchung des Lenkgef\374hles.docx"
> #       "trunk/007_Literatur/Auszug aus Ergonomische Untersuchung des 
> Lenkgef\303\274hles.docx"

So the directory contains the utf-8 name, but the index contains a latin-1 name, when you wrote it under Windows and are looking at it under Linux. You probably want to use utf-8 for your repository, so that it's not specific to your locale.

Show 6 quoted lines
> in linux. But the file exists and is displayed correctly in the shell 
> or in dolphin (my filemanager under X):
> 
> user@sauron:/media/disk-2$ ls trunk/007_Literatur/Auszug*
> trunk/007_Literatur/Auszug aus Ergonomische Untersuchung des 
> Lenkgefühles.docx

You've got a utf-8 filesystem, so the u-with-umlaut is the two-byte sequence git is showing in the message as being present, not the single byte that it's showing as deleted. It looks like you're actually using utf-8 for what's on the usb stick, so you probably want the names listed in the repository to match that, which means that the correct one here is Linux.

> Can you please give me a hint what to do?

Convince Windows (or msysgit) to report filenames to git in utf-8. (I don't know *how*, but that's *what* you probably want to do.)

Once you've got everything agreeing on the character set used for filenames, you can disable "core.quotepath" to make the messages appear with umlauts; if you turned that off before fixing the inconsistancy, it would be much trickier to debug, because the "deleted" line would contain something that your Linux display won't consider a valid character.

	-Daniel
*This .sig left intentionally blank*
Previous: Michael J Gruber
Message 8 of 8 in “Umlaut in filename makes troubles”
  1. rick23@gmx.netDec 1, 2009
  2. Øyvind A. HolmDec 1, 2009
  3. JochenDec 1, 2009
  4. Michael J GruberDec 1, 2009
  5. JochenDec 1, 2009
  6. JochenDec 1, 2009
  7. Michael J GruberDec 1, 2009
  8. Daniel BarkalowDec 1, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.