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

2 messages from 2007-11-12 to 2007-11-13. Participants: Ping Yin, René Scharfe.
Thread: https://gitlist.dev/t/10825

## Ping Yin, 2007-11-12 12:04

Subject: git-log --pretty=format:%s doesn't honor option i18n.logoutputencoding?
Message-ID: <46dff0320711120404l5581b1fbpc91c2557bcad2c88@mail.gmail.com>
URL: https://gitlist.dev/e/46dff0320711120404l5581b1fbpc91c2557bcad2c88%40mail.gmail.com

```
$ 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

-- 
Ping Yin

```

## René Scharfe, 2007-11-13 18:05

Subject: Re: git-log --pretty=format:%s doesn't honor option i18n.logoutputencoding?
Message-ID: <4739E74F.9070008@lsrfire.ath.cx>
URL: https://gitlist.dev/e/4739E74F.9070008%40lsrfire.ath.cx
In-Reply-To: <46dff0320711120404l5581b1fbpc91c2557bcad2c88@mail.gmail.com>

```
Ping Yin schrieb:
> $ 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é

```
