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

Re: [PATCH/RFC] core.precomposeunicode is true by default

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 27, 2013, 14:49 UTC
Message-ID
<xmqqvc2rfau9.fsf@gitster.dls.corp.google.com>
In-Reply-To
<521CAD88.4080609@web.de>
Torsten Bögershausen <tboegi@web.de> writes:
Show 9 quoted lines
>>... see if that path can be seen under its alias.  Why do we set it
>>to "false"?  Isn't this the true culprit?
>>
>>After all, this is not in the "reinit" codepath, so we know we are
>>dealing with a repository that was created afresh.
>
> There is nothing wrong with the auto-sensing as such.
> The problem for many users today is that we set core.precomposeunicode
> to false, when it should be true.
I think we are in agreement then.

The code detects a broken filesystem just fine, but what it does when it finds the filesystem is broken is wrong---it sets the variable to false. That makes the whole auto-sensing wrong, and I think it makes sense to correct that behaviour.

Show 6 quoted lines
> Let's look what precomposed_unicode does and go through a couple
> of git operations.
>
> 1)
> When we create a repo under Mac OS using HFS+,
> we want to have precomposed_unicode = 1
Yes.
> 2)
> When we access a repo from Windows/Linux using SAMBA,
You mean s/repo/repository that resides on HFS+/?
> readdir() will return decomposed.
> When the repo is created by nonMacOS, core.precomposeunicode is undefined.
> The precomposition is off, but should be on, 
> precomposed_unicode = -1, but should be = 1

I do not think UTF-8-MAC is widely available; even if you flip the bit on, would it help much?

Previous: Torsten BögershausenNext: Torsten Bögershausen
Message 7 of 10 in “core.precomposeunicode is true by default”
  1. core.precomposeunicode is true by defaultTorsten Bögershausen, Jul 27, 2013
  2. Duy NguyenJul 27, 2013
  3. Torsten BögershausenJul 27, 2013
  4. Duy NguyenJul 28, 2013
  5. Junio C HamanoJul 29, 2013
  6. Torsten BögershausenAug 27, 2013
  7. Junio C HamanoAug 27, 2013
  8. Torsten BögershausenAug 27, 2013
  9. Junio C HamanoAug 27, 2013
  10. Torsten BögershausenAug 27, 2013

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.