hg qrefresh doesn't honor "--encoding" for "--logfile"

Matt Mackall mpm at selenic.com
Fri Nov 16 19:56:26 UTC 2012


On Fri, 2012-11-16 at 19:47 +0100, Marc Strapetz wrote:
> It seems that:
> 
>  hg qrefresh --encoding utf-8 --logfile <file>
> 
> still tries to process the log-file with platform encoding. When using:
> 
>  hg commit --encoding utf-8 --logfile <file>
> 
> with the same <file>, contents are properly interpreted as UTF-8.
> 
> $ hg --version
> Mercurial Distributed SCM (version 2.2.3)
> (see http://mercurial.selenic.com for more information)

Please file a bug so we don't lose track of this:

http://mercurial.selenic.com/wiki/BugTracker

I'm 99.99% sure something else is going on. Neither mq nor commit have
any encoding logic at all, so it's impossible for them to behave
differently here. All the encoding handling for commit messages happens
in a single place, the low-level function that adds changelog messages
to the store.

My guess is you're on Windows, where Mercurial intentionally uses the
ANSI codepage for all output by default as that encoding is more
compatible with the bulk of the Windows ecosystem, even though the
"console" uses the OEM codepage.

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list