UnicodeDecodeError: 'ascii' codec can't decode byte... errors on OS X

Matthias Pigulla mp at webfactory.de
Tue Aug 20 16:52:16 UTC 2013



>Why do you use 8859?
>can't you use 
>LANG=de_DE.UTF-8

Because my terminal is latin1 for some reasons I cannot easily change.

FWIW, de_DE.UTF-8 gives the same errors; de_DE.UTF8 (without the hyphen)
results in (partially) German messages with all non-ascii chars replaced
as "?".

>Do you use hg from command line?
>If yes, you "override" the hg command using a shell alias.
>
>alias hg='LANG=C hg'

That's the wrapper I thought about (although I did not think about
aliases, thanks for that!).

In that case, commit messages with non-ascii chars will show "?" where
previously (with .ISO8859-1) the characters were correctly displayed.

-mp.




More information about the Mercurial mailing list