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

filenames in repo are in CP1251; I have linux and UTF-8

From
IBIlya Basin <basinilya@gmail.com>
Date
Aug 2, 2011, 07:54 UTC
Message-ID
<1167098359.20110802115414@gmail.com>

Hi list! Most of our developers use msysgit which stores filenames in CP1251 encoding. Two of us use cygwin and linux.

When checkout on both linux and cygwin, Russian filenames are garbled.

On Cygwin it even worse, because the conversion of invalid UTF-8 chars to Unicode, made by Cygwin is irreversible, causing git to miss the files it've just checked out. Workaround for Cygwin is to change LANG from "C.UTF-8" to "ru_RU.CP1251". It fixes filenames, but brakes everything else: log (fixed by i18n.logOutputEncoding), status, show, diff

Unlike on Cygwin, LANG has no effect for git filenames on Linux. Good thing, there's no conversion to unicode, so files aren't lost at checkout.

Question: is there a way to tell git on Linux to use UTF-8 filenames
for the working tree, while storing them in CP1251?
Next: Dmitry Potapov
Message 1 of 2 in “filenames in repo are in CP1251; I have linux and UTF-8”
  1. Ilya BasinAug 2, 2011
  2. Dmitry PotapovAug 2, 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.