Language Settings in .hgrc

Matt Mackall mpm at selenic.com
Thu Jun 25 20:25:59 UTC 2015


On Thu, 2015-06-25 at 11:36 +0900, Michael Herring wrote:
> Can we please have a language setting in .hgrc to force a particular language?
> 
> I use Windows in Japanese but through some combination of
> Mercurial’s/my encodings, all text looks like gibberish. (That is to
> say, “chcp 65001” and “chcp 932” both result in garbage Japanese text
> being output by Mercurial)

Can you tell us:

- your OEM codepage (encoding used by the console, chcp)
- your ANSI codepage (encoding used by GUI apps)
- encoding reported by hg help -v (next to --encoding)

If these don't all agree, you've got trouble.

Mercurial respects the standard locale environment variables. Simply
setting LANG=C will get you plain ASCII/English output. We don't have
encoding/language settings in .hgrc because we can have output and error
messages long before those are read.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial mailing list