{"thread":{"id":"21803","subject":"Umlaut in filename makes troubles","startedAt":"2009-12-01T07:15:08Z","lastAt":"2009-12-01T18:48:59Z","messageCount":8,"participants":["rick23@gmx.net","Øyvind A. Holm","Michael J Gruber","Jochen","Daniel Barkalow"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"128835","messageId":"200912010815.14515.rick23@gmx.net","threadId":"21803","inReplyTo":null,"subject":"Umlaut in filename makes troubles","fromName":"","fromEmail":"rick23@gmx.net","sentAt":"2009-12-01T07:15:08Z","receivedAt":"2009-12-01T07:15:08Z","isPatch":false,"sender":{"key":"rick23@gmx.net","avatar":null},"body":"I have problems with my repository under slackware vs. windows. I \ncreated a repo in linux and every time I use it under msysgit, the \nfiles containing umlauts in the filename are marked as deleted (and \nvice versa).\n\nFor instance: the repo perfectly synced under msysgit leads to:\n\nuser@sauron:/media/disk-2$ git status |grep Auszug\n#       deleted:    \"trunk/007_Literatur/Auszug aus Ergonomische \nUntersuchung des Lenkgef\\374hles.docx\"\n#       \"trunk/007_Literatur/Auszug aus Ergonomische Untersuchung des \nLenkgef\\303\\274hles.docx\"\n\nin linux. But the file exists and is displayed correctly in the shell \nor in dolphin (my filemanager under X):\n\nuser@sauron:/media/disk-2$ ls trunk/007_Literatur/Auszug*\ntrunk/007_Literatur/Auszug aus Ergonomische Untersuchung des \nLenkgefühles.docx\n\nCan you please give me a hint what to do?\n\nTIA\n"},{"id":"128842","messageId":"20091201074420.GC3618@triton","threadId":"21803","inReplyTo":"200912010815.14515.rick23@gmx.net","subject":"Re: Umlaut in filename makes troubles","fromName":"Øyvind A. Holm","fromEmail":"sunny@sunbase.org","sentAt":"2009-12-01T07:44:20Z","receivedAt":"2009-12-01T07:44:20Z","isPatch":false,"sender":{"key":"sunny@sunbase.org","avatar":"https://avatars.githubusercontent.com/u/113445?v=4"},"body":"On 2009-12-01 08:15:08, rick23@gmx.net wrote:\n> I have problems with my repository under slackware vs. windows. I \n> created a repo in linux and every time I use it under msysgit, the \n> files containing umlauts in the filename are marked as deleted (and \n> vice versa).\n>\n> For instance: the repo perfectly synced under msysgit leads to:\n>\n> user@sauron:/media/disk-2$ git status |grep Auszug\n> #       deleted:    \"trunk/007_Literatur/Auszug aus Ergonomische \n> Untersuchung des Lenkgef\\374hles.docx\"\n> #       \"trunk/007_Literatur/Auszug aus Ergonomische Untersuchung des \n> Lenkgef\\303\\274hles.docx\"\n>\n> in linux. But the file exists and is displayed correctly in the shell \n> or in dolphin (my filemanager under X):\n>\n> user@sauron:/media/disk-2$ ls trunk/007_Literatur/Auszug*\n> trunk/007_Literatur/Auszug aus Ergonomische Untersuchung des \n> Lenkgefühles.docx\n>\n> Can you please give me a hint what to do?\n\nTry to specify \"utf8\" as mount option under Linux. You can also try \nexperimenting with the \"nls\" mount option, check out the mount(8) man \npage to see how it's used.\n\nAdditionally, I found that I need \"shortname=mixed\" when mounting USB \nmemory cards. As filenames are case insensitive in Windowsworld and \ngadgets using vfat, Linux tend to treat them differently.\n\nRegards,\nØyvind\n\n+-| Øyvind A. Holm <sunny@sunbase.org> - N 60.39548° E 5.31735° |-+\n| OpenPGP: 0xFB0CBEE894A506E5 - http://www.sunbase.org/pubkey.asc |\n| Fingerprint: A006 05D6 E676 B319 55E2  E77E FB0C BEE8 94A5 06E5 |\n+------------| 760e5d4a-de4c-11de-a982-90e6ba3022ac |-------------+\n"},{"id":"128843","messageId":"4B14CBA9.6080104@drmicha.warpmail.net","threadId":"21803","inReplyTo":"200912010815.14515.rick23@gmx.net","subject":"Re: Umlaut in filename makes troubles","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2009-12-01T07:54:17Z","receivedAt":"2009-12-01T07:54:17Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"rick23@gmx.net venit, vidit, dixit 01.12.2009 08:15:\n> I have problems with my repository under slackware vs. windows. I \n> created a repo in linux and every time I use it under msysgit, the \n> files containing umlauts in the filename are marked as deleted (and \n> vice versa).\n> \n> For instance: the repo perfectly synced under msysgit leads to:\n> \n> user@sauron:/media/disk-2$ git status |grep Auszug\n> #       deleted:    \"trunk/007_Literatur/Auszug aus Ergonomische \n> Untersuchung des Lenkgef\\374hles.docx\"\n> #       \"trunk/007_Literatur/Auszug aus Ergonomische Untersuchung des \n> Lenkgef\\303\\274hles.docx\"\n> \n> in linux. But the file exists and is displayed correctly in the shell \n> or in dolphin (my filemanager under X):\n> \n> user@sauron:/media/disk-2$ ls trunk/007_Literatur/Auszug*\n> trunk/007_Literatur/Auszug aus Ergonomische Untersuchung des \n> Lenkgefühles.docx\n> \n> Can you please give me a hint what to do?\n\nI would say you can give us more info about your setup. If I understand\nyou correctly, you use the same repo and checkout under linux and\nmsysgit. What kind of filesystem is this on, what are the mount options?\nWhat is your locale ($LANG) in slackware?\n\nMichael\n"},{"id":"128847","messageId":"hf2jvd$jff$2@ger.gmane.org","threadId":"21803","inReplyTo":"20091201074420.GC3618@triton","subject":"Re: Umlaut in filename makes troubles","fromName":"Jochen","fromEmail":"rick23@gmx.net","sentAt":"2009-12-01T08:26:14Z","receivedAt":"2009-12-01T08:26:14Z","isPatch":false,"sender":{"key":"rick23@gmx.net","avatar":null},"body":"Øyvind A. Holm wrote:\n\n> On 2009-12-01 08:15:08, rick23@gmx.net wrote:\n> > I have problems with my repository under slackware vs. windows. I\n> > created a repo in linux and every time I use it under msysgit,\n> > the files containing umlauts in the filename are marked as\n> > deleted (and vice versa).\n> >\n> > For instance: the repo perfectly synced under msysgit leads to:\n> >\n> > user@sauron:/media/disk-2$ git status |grep Auszug\n> > #       deleted:    \"trunk/007_Literatur/Auszug aus Ergonomische\n> > Untersuchung des Lenkgef\\374hles.docx\"\n> > #       \"trunk/007_Literatur/Auszug aus Ergonomische Untersuchung\n> > des Lenkgef\\303\\274hles.docx\"\n> >\n> > in linux. But the file exists and is displayed correctly in the\n> > shell or in dolphin (my filemanager under X):\n> >\n> > user@sauron:/media/disk-2$ ls trunk/007_Literatur/Auszug*\n> > trunk/007_Literatur/Auszug aus Ergonomische Untersuchung des\n> > Lenkgefühles.docx\n> >\n> > Can you please give me a hint what to do?\n>\n> Try to specify \"utf8\" as mount option under Linux. \n\nThe automount of KDE 4.2.4 already used utf-8 (I guess the filenames \nwould be garbled in dolphin otherwise)\n\n> You can also try\n> experimenting with the \"nls\" mount option, check out the mount(8)\n> man page to see how it's used.\n\nUfff, I'm sorry - I'm not sure how to pass this to the automouter. I'd \ntried to mount the stick manually (with and without utf) and without \nutf8 the filenames are display strange from \"ls\".\n\n> Additionally, I found that I need \"shortname=mixed\" when mounting\n> USB memory cards. As filenames are case insensitive in Windowsworld\n> and gadgets using vfat, Linux tend to treat them differently.\n\nMy automouter done it as\n\n/dev/sde on /media/disk-2 type vfat \n(rw,nosuid,nodev,uhelper=hal,uid=1000,utf8,shortname=mixed)\n\nSo the options look right to me.\n\nKindest regards\nJochen\n"},{"id":"128852","messageId":"hf2mau$l2r$1@ger.gmane.org","threadId":"21803","inReplyTo":"4B14CBA9.6080104@drmicha.warpmail.net","subject":"Re: Umlaut in filename makes troubles","fromName":"Jochen","fromEmail":"rick23@gmx.net","sentAt":"2009-12-01T09:06:31Z","receivedAt":"2009-12-01T09:06:31Z","isPatch":false,"sender":{"key":"rick23@gmx.net","avatar":null},"body":"Michael J Gruber wrote:\n\n> > I have problems with my repository under slackware vs. windows. I\n> > created a repo in linux and every time I use it under msysgit,\n> > the files containing umlauts in the filename are marked as\n> > deleted (and vice versa).\n> >\n> > For instance: the repo perfectly synced under msysgit leads to:\n> >\n> > user@sauron:/media/disk-2$ git status |grep Auszug\n> > #       deleted:    \"trunk/007_Literatur/Auszug aus Ergonomische\n> > Untersuchung des Lenkgef\\374hles.docx\"\n> > #       \"trunk/007_Literatur/Auszug aus Ergonomische Untersuchung\n> > des Lenkgef\\303\\274hles.docx\"\n> >\n> > in linux. But the file exists and is displayed correctly in the\n> > shell or in dolphin (my filemanager under X):\n> >\n> > user@sauron:/media/disk-2$ ls trunk/007_Literatur/Auszug*\n> > trunk/007_Literatur/Auszug aus Ergonomische Untersuchung des\n> > Lenkgefühles.docx\n> >\n> > Can you please give me a hint what to do?\n>\n> I would say you can give us more info about your setup. If I\n> understand you correctly, you use the same repo and checkout under\n> linux and msysgit. \n\nRight - I created it under linux on a local directory, cloned it to an \nusb-stick and cloned it again under windows.\nI then worked under windows (msysgit) and pushed it to the stick \nagain. \nNow I am back an my linux maschine and the files with umlauts in the \nfilenames are mared as deleted.\n\n> > What kind of filesystem is this on, what are the\n> mount options? \n\n/dev/sde on /media/disk-2 type vfat \n(rw,nosuid,nodev,uhelper=hal,uid=1000,utf8,shortname=mixed)\n\nmounted by the automounter of KDE 4.2.4\n\n> What is your locale ($LANG) in slackware?\n\nLANG=de_AT.utf-8\n\nJochen\n"},{"id":"128859","messageId":"hf2pbp$rss$1@ger.gmane.org","threadId":"21803","inReplyTo":"200912010815.14515.rick23@gmx.net","subject":"Re: Umlaut in filename makes troubles","fromName":"Jochen","fromEmail":"rick23@gmx.net","sentAt":"2009-12-01T09:58:10Z","receivedAt":"2009-12-01T09:58:10Z","isPatch":false,"sender":{"key":"rick23@gmx.net","avatar":null},"body":"I found another strange effect...\n\nI made a file with \"touch aöäü.txt\" and from \"git status\" I get \n#       \"a\\303\\266\\303\\244\\303\\274.txt\"\nreported as untracked. But when I start \"git gui\" I get file displayed with \nit's correct name...\n"},{"id":"128880","messageId":"4B1523F0.9030304@drmicha.warpmail.net","threadId":"21803","inReplyTo":"hf2pbp$rss$1@ger.gmane.org","subject":"Re: Umlaut in filename makes troubles","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2009-12-01T14:10:56Z","receivedAt":"2009-12-01T14:10:56Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Jochen venit, vidit, dixit 01.12.2009 10:58:\n> I found another strange effect...\n> \n> I made a file with \"touch aöäü.txt\" and from \"git status\" I get \n> #       \"a\\303\\266\\303\\244\\303\\274.txt\"\n> reported as untracked. But when I start \"git gui\" I get file displayed with \n> it's correct name...\n> \n\nDoes this change after\n\ngit config core.quotepath false\n\nMichael\n"},{"id":"128912","messageId":"alpine.LNX.2.00.0912011325481.14365@iabervon.org","threadId":"21803","inReplyTo":"200912010815.14515.rick23@gmx.net","subject":"Re: Umlaut in filename makes troubles","fromName":"Daniel Barkalow","fromEmail":"barkalow@iabervon.org","sentAt":"2009-12-01T18:48:59Z","receivedAt":"2009-12-01T18:48:59Z","isPatch":false,"sender":{"key":"barkalow@iabervon.org","avatar":"https://avatars.githubusercontent.com/u/55364219?v=4"},"body":"On Tue, 1 Dec 2009, rick23@gmx.net wrote:\n\n> I have problems with my repository under slackware vs. windows. I \n> created a repo in linux and every time I use it under msysgit, the \n> files containing umlauts in the filename are marked as deleted (and \n> vice versa).\n> \n> For instance: the repo perfectly synced under msysgit leads to:\n> \n> user@sauron:/media/disk-2$ git status |grep Auszug\n> #       deleted:    \"trunk/007_Literatur/Auszug aus Ergonomische \n> Untersuchung des Lenkgef\\374hles.docx\"\n> #       \"trunk/007_Literatur/Auszug aus Ergonomische Untersuchung des \n> Lenkgef\\303\\274hles.docx\"\n\nSo the directory contains the utf-8 name, but the index contains a latin-1 \nname, when you wrote it under Windows and are looking at it under Linux. \nYou probably want to use utf-8 for your repository, so that it's not \nspecific to your locale.\n\n> in linux. But the file exists and is displayed correctly in the shell \n> or in dolphin (my filemanager under X):\n> \n> user@sauron:/media/disk-2$ ls trunk/007_Literatur/Auszug*\n> trunk/007_Literatur/Auszug aus Ergonomische Untersuchung des \n> Lenkgefühles.docx\n\nYou've got a utf-8 filesystem, so the u-with-umlaut is the two-byte \nsequence git is showing in the message as being present, not the single \nbyte that it's showing as deleted. It looks like you're actually using \nutf-8 for what's on the usb stick, so you probably want the names listed \nin the repository to match that, which means that the correct one here is \nLinux.\n\n> Can you please give me a hint what to do?\n\nConvince Windows (or msysgit) to report filenames to git in utf-8. (I \ndon't know *how*, but that's *what* you probably want to do.)\n\nOnce you've got everything agreeing on the character set used for \nfilenames, you can disable \"core.quotepath\" to make the messages appear \nwith umlauts; if you turned that off before fixing the inconsistancy, it \nwould be much trickier to debug, because the \"deleted\" line would contain \nsomething that your Linux display won't consider a valid character.\n\n\t-Daniel\n*This .sig left intentionally blank*"}]}