threads / discuss / 29202

i18n.commitencoding=gbk or --encoding=gbk not work with --pretty=format

Subject: i18n.commitencoding=gbk or --encoding=gbk not work with --pretty=format

## tl;dr

One message between Dec 18, 2011 and Dec 18, 2011.

replies: 0people: 1as markdown or json

Yuchen Deng· Dec 18, 2011, 13:26 UTC · lore

Hi, all! When set the option i18n.commitencoding value to gbk. I found the 'git log' ouput encoding always is the default : utf8

    git log -n10 --pretty=format:"%h %d %an %s %ci" --topo-order --graph
or
    git log -n10 --encoding=utf8 --pretty=format:"%h %d %an %s %ci"
--topo-order --graph
But:
    git log --oneline

works well. I am from China, and the GFW thing, I can't visit git-scm.com. So, Somebody can help me to report this bug? I am sure it's don't work for Windows (msys-git) or Linux (Chakra). Thanks!

-- View this message in context: http://git.661346.n2.nabble.com/i18n-commitencoding-gbk-or-encoding-gbk-not-work-with-pretty-format-tp7105845p7105845.html Sent from the git mailing list archive at Nabble.com.

← back to recent threads