Search code examples
mercuriallocale

how can I force the hg executable to use English local for its output?


Mercurial's output may be localized. This is nasty when parsing command output and it actually may break such code. Is there some command line option or environment variable which can be used to force Mercurial to use English locale?


Solution

  • For a linux shell (Bash, bsh, sh), use:

    LANG=en_US hg <status/log/etc>