threads / discuss / 10825

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

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

## tl;dr

2 messages between Nov 12, 2007 and Nov 13, 2007.

replies: 1people: 2as markdown or json

Ping Yin· Nov 12, 2007, 12:04 UTC · lore

$ 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· Nov 13, 2007, 18:05 UTC · re: Ping Yin · lore

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

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é

← back to recent threads