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

Re: Git, Mac OS X and German special characters

From
Jakub Narebski <jnareb@gmail.com>
Date
Oct 1, 2011, 23:14 UTC
Message-ID
<m3hb3snw4b.fsf@localhost.localdomain>
In-Reply-To
<CAMOZ1BuXiQkZG_7mvay-ybm7Q7niwXVhbmbCmkfy=wD1AKsasQ@mail.gmail.com>
Michael Witten <mfwitten@gmail.com> writes:
Show 10 quoted lines
> On Sat, Oct 1, 2011 at 19:47, Andreas Krey <a.krey@gmx.de> wrote:
> 
> > The question is, should git forbid two filenames that consist
> > of the *same* characters, only differently uni-encoded? I don't
> > think anyone would make two files named 'Büro', with different
> > unicode encodings. But as far as I know that is a shady area.
> 
> So, let's leave git's current behavior as the default and provide
> a config variable that when set, tells git to handle file names
> in terms of characters rather than bytes.

You meant here _graphemes_, not Unicode codepoint when talking about characters, didn't you?

IIRC the problem with MacOS X is that it accepts different composition when creating a file from what it returns when asking for contents of directory (NFD if I remember correctly, which is less used).

There are some beginnings of sanely handling filesystem encoding in Git (the framework), but it is currently underutilized only to handle case-sensitivity and case-preserving.

-- 
Jakub Narębski
Previous: Michael WittenNext: Michael Witten
Message 7 of 9 in “Git, Mac OS X and German special characters”
  1. Albert ZeyerOct 1, 2011
  2. Andreas EricssonOct 1, 2011
  3. Torsten BögershausenOct 3, 2011
  4. Andreas EricssonOct 1, 2011
  5. Andreas KreyOct 1, 2011
  6. Michael WittenOct 1, 2011
  7. Jakub NarebskiOct 1, 2011
  8. Michael WittenOct 1, 2011
  9. Albert ZeyerOct 1, 2011

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.