Language Settings in .hgrc

Michael Herring michaelh at unity3d.co.jp
Fri Jun 26 07:48:35 UTC 2015


Thanks, LANG was what I needed!

./Michael Herring
Sent with Airmail

On 2015年6月26日 at 5:25:57, Matt Mackall (mpm at selenic.com) wrote:

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.  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20150626/736a3f0e/attachment-0002.html>


More information about the Mercurial mailing list