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

Re: [RFC] i18n.pathencoding

From
Torsten Bögershausen <tboegi@web.de>
Date
Sep 8, 2012, 10:09 UTC
Message-ID
<504B194A.6050009@web.de>
In-Reply-To
<5043E4B4.9050801@dewire.com>
On 03.09.12 00:59, Robin Rosenberg wrote:
Show 18 quoted lines
> Torsten Bögershausen skrev 2012-09-01 08.11:> Allow path names to be encoded in UTF-8 in the repository
>> and checkout out as e.g. ISO-8859-1 in the working tree.
> 
> Ack for attempting this.
> 
> Did it myself if 2007, but times weren't ripe then, I guess.
> 
>> +i18n.pathEncoding::
>> +    This option is only used by some implementations of git.
>> +    When "git init" sets core.supportspathencoding to true,
>> +    i18n.pathEncoding can be set to re-encode path names when
>> +    a working tree is checked out.
>> +    Path names may be e.g. encoded in ISO-8859-1 and are stored as
>> +    UTF-8 encoded in the repository.
>> +    When not set, the encoding of path names is the same in working tree
>> +    and the repository.
> 
> "If set, then core.precomposeunicode is ignored on Mac OS X."

Thanks for comments, I will integrate them (but don't expect that too soon ;-).

Before that I want to find & fix the performance issues, and the t1450 breakage asks for my attention again.

However, the combination of i18n.pathEncoding and core.precomposeunicode under Mac OS X needs to be clarified. Mac OS X only allows unicode (an "Ä" encoded in ISO-8859-1 gives a single byte), and the HFS+ filesystem will list it as %C4.

So the i18.pathencoding does not make sence under Mac OS X, and should be ignored. It is not ignored today, since the characters use in t3911 are choosen to be both valid UTF-8 and ISO-8859-1 code points/characters, so that the feature can be tested on Mac OS X.

  
Previous: Robin RosenbergNext: Nguyen Thai Ngoc Duy
Message 3 of 11 in “[RFC] i18n.pathencoding”
  1. Torsten BögershausenSep 1, 2012
  2. Robin RosenbergSep 2, 2012
  3. Torsten BögershausenSep 8, 2012
  4. Nguyen Thai Ngoc DuySep 4, 2012
  5. Junio C HamanoSep 4, 2012
  6. Torsten BögershausenSep 4, 2012
  7. Junio C HamanoSep 4, 2012
  8. Torsten BögershausenSep 5, 2012
  9. Nguyen Thai Ngoc DuySep 5, 2012
  10. Torsten BögershausenSep 5, 2012
  11. Junio C HamanoSep 6, 2012

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.