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

Re: Git, Mac OS X and German special characters

From
Andreas Krey <a.krey@gmx.de>
Date
Oct 1, 2011, 19:47 UTC
Message-ID
<20111001194746.GA16826@inner.h.iocl.org>
In-Reply-To
<4E872288.10503@op5.se>

On Sat, 01 Oct 2011 09:24:08 +0000, Andreas Ericsson wrote: ...

Show 8 quoted lines
> The trouble is that they may represent two different files on a
> different filesystem. The Linux kernel repo has plenty of files
> that exist with both uppercase and lowercase characters, like so:
> SOMEFILE_driver.c
> somefile_driver.c
> 
> This is perfectly valid on all sensible and case-sensitive
> filesystems, but breaks horribly on HFS.

It also breaks on windows, except in at least one country[1]. And the latter alone is good reason why no VCS should try to forbid to use different characters that some filesystems (and only some) consider the same.

> There are other, far more
> "interesting" cases when you involve special chars such as the
> german umlaut, or the swedish åäö characters.
Care to share some?

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.

Andreas
[1] Which has 'i with dot' and 'i without dot' both in uppercase
    and lowercase variant, so I and i are not the 'same'.
Previous: Andreas EricssonNext: Michael Witten
Message 5 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.