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

Re: Weird filename encoding issue

From
Jakub Narebski <jnareb@gmail.com>
Date
Oct 17, 2008, 08:57 UTC
Message-ID
<m3hc7bk39g.fsf@localhost.localdomain>
In-Reply-To
<c6c947f60810170108q3038b66bj2ad89bdcb7105903@mail.gmail.com>
"Alexander Gladysh" <agladysh@gmail.com> writes:
Show 19 quoted lines
> Steps to reproduce:
> 
> 1. Create git repo on Windows machine, add there file, named
> "Копия.txt" (Russian for Copy.txt) in CP1251 (NOT UTF-8). Just in
> case, hopefully correctly named file is attached.
> 
> File must be added and committed from git gui, not from command line.
> 
> $ mkdir test && cd test
> $ git init
> <put file there>
> $ git gui
> 
> 2. Share the repo somewhere, so it would be accessible from OS X (repo
> should still be on Windows machine).
> 
> 3. Clone repo to OS X machine and see the weird behaviour. Git status
> can't decide how file should be named, "%CA%EE%EF%E8%FF.txt" or
> "\312\356\357\350\377.txt".

I _suspect_ that it is caused by known issue with MacOS X filesystem in default settings. Git assumes that what he puts in filesystem is the same that it reads from filesystem; there is ongoing (although bit stalled) effort to make Git work around this. Unfortunately HFS+ does not, I think, fullfil this requirement.

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Alexander Gladysh
Message 10 of 10 in “Weird filename encoding issue”
  1. Alexander GladyshOct 17, 2008
  2. Alexander GladyshOct 17, 2008
  3. Johannes SixtOct 17, 2008
  4. Robin RosenbergOct 18, 2008
  5. Peter KreftingOct 27, 2008
  6. Alexander GladyshOct 18, 2008
  7. Robin RosenbergOct 18, 2008
  8. Johannes SixtOct 18, 2008
  9. Alexander GladyshOct 19, 2008
  10. Jakub NarebskiOct 17, 2008

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.