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

Re: non-ascii filenames issue

From
John Tapsell <johnflux@gmail.com>
Date
Apr 5, 2009, 10:51 UTC
Message-ID
<43d8ce650904050351p72590d52l8861b3901f95201a@mail.gmail.com>
In-Reply-To
<20090405100127.GA12126@home>
2009/4/5 Gregory Petrosyan <gregory.petrosyan@gmail.com>:
Show 16 quoted lines
> On Sun, Apr 05, 2009 at 12:54:28PM +0300, Teemu Likonen wrote:
>> On 2009-04-05 13:36 (+0400), Gregory Petrosyan wrote:
>>
>> > # Changes to be committed:
>> > #   (use "git rm --cached <file>..." to unstage)
>> > #
>> > #  new file:   "\321\204\320\260\320\271\320\273"
>> > #
>> >                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> >                  "файл" should be here instead
>>
>> It can be fixed with command:
>>
>>     git config --global core.quotepath false
>
> Thanks! That works. Does it make sence to set it to "false" by default?

Unfortunately not, because for some absolutely crazy reason, there is no way at all to tell what encoding the string is in. It never occured to anyone that it might actually be useful to be able to read the filename in an unambiguous way. The result is this sort of mess. Just wait until you try to checkout that file on a new filesystem with a different encoding. Or try to checkout that file in Windows. It's like git decided to step backwards 30 years.

John
Previous: Gregory PetrosyanNext: Jay Soffian
Message 4 of 11 in “non-ascii filenames issue”
  1. Gregory PetrosyanApr 5, 2009
  2. Teemu LikonenApr 5, 2009
  3. Gregory PetrosyanApr 5, 2009
  4. John TapsellApr 5, 2009
  5. Jay SoffianApr 5, 2009
  6. Junio C HamanoApr 5, 2009
  7. Jay SoffianApr 5, 2009
  8. Peter KreftingApr 6, 2009
  9. Johannes SchindelinApr 6, 2009
  10. Dmitry PotapovApr 6, 2009
  11. demerphqApr 7, 2009

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.