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

Re: [PATCH] Update l10n guide

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Mar 2, 2012, 10:47 UTC
Message-ID
<4F50A55E.8040705@viscovery.net>
In-Reply-To
<CANYiYbE7bxz5=h9gaKf6+N6k5cn6mEKnuf_7KPFAnDrC31UL_w@mail.gmail.com>
Am 3/2/2012 8:30, schrieb Jiang Xin:
> Git does not handle multi-bytes character well. Multi-bytes characters
> not convert to UTF-8 when git write tree objects and commit objects.

It does not convert, but it records which encoding the text has. If you don't specify anything, UTF-8 is assumed, and if your text is actually not UTF-8, the result is necessarily garbage.

Show 10 quoted lines
> I think allow multi-bytes characters in commit log would hurt git.git until
> git gives full support UTF-8 (are there any plans for this?).
> I just tested several versions of msysgit:
> 
>  - Only Git-1.7.8-preview20111229-unicode.exe saves commit objects
>    with utf-8 encode.
> 
>  - Other versions such as Git-1.7.9-preview20120201.exe and
>    Git-1.7.8-preview20111206.exe will not convert multi-bytes characters
>    in commit log into UTF-8.
Then you haven't set i18n.commitEncoding. Try this:
   git config i18n.commitEncoding CP936
(substitute whatever Windows codepage you are using).
-- Hannes
Previous: Jiang XinNext: Jiang Xin
Message 7 of 11 in “l10n: the maintaince of git-po repo”
  1. Jiang XinFeb 28, 2012
  2. Junio C HamanoFeb 29, 2012
  3. Update l10n guideJunio C Hamano, Feb 29, 2012
  4. Jiang XinMar 1, 2012
  5. Junio C HamanoMar 1, 2012
  6. Jiang XinMar 2, 2012
  7. Johannes SixtMar 2, 2012
  8. Jiang XinMar 2, 2012
  9. Jakub NarebskiMar 2, 2012
  10. Junio C HamanoMar 2, 2012
  11. Update l10n guide: change the repository URL, etcJiang Xin, Mar 2, 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.