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

Re: git-log --pretty=format:%s doesn't honor option i18n.logoutputencoding?

From
René Scharfe <rene.scharfe@lsrfire.ath.cx>
Date
Nov 13, 2007, 18:05 UTC
Message-ID
<4739E74F.9070008@lsrfire.ath.cx>
In-Reply-To
<46dff0320711120404l5581b1fbpc91c2557bcad2c88@mail.gmail.com>
Ping Yin schrieb:
Show 15 quoted lines
> $ gtcf --get-regexp i18n.*
> i18n.logoutputencoding GBK
> $ locale | grep LC_CTYPE
> LC_CTYPE=zh_CN.GBK
> $ git --version
> git version 1.5.3.4
> 
> And my terminal encoding is GBK
> 
> $ git log --pretty=oneline
> msgs with chinese character displayed correctly
> 
> However
> $ git log --pretty=format:%s
> the chinese character doesn't display correctly

Yes, indeed, --pretty=format has always ignored encodings. I'll see if I can cook up a patch later this week, if nobody beats me to it.

René
Previous: Ping Yin
Message 2 of 2 in “git-log --pretty=format:%s doesn't honor option i18n.logoutputencoding?”
  1. Ping YinNov 12, 2007
  2. René ScharfeNov 13, 2007

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.