Re: Umlaut in filename makes troubles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 1 Dec 2009, rick23@xxxxxxx wrote:

> 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.

> 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*

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]