[issue600] OS X encoding casues LookupError
Carson Reynolds
mercurial-bugs at selenic.com
Tue Jun 26 08:12:29 UTC 2007
New submission from Carson Reynolds <carson at k2.t.u-tokyo.ac.jp>:
On the OS X platform in util.py, tolocal(s) is causing a LookupError. This is
because locale.getpreferredencoding() returns (in my case) 'X-MAC-JAPANESE'
which python is unable to encode as UTF-8. I think this problem effects at least
OS X with non-western locales and possibly 'X-MAC-ROMAN' but have not verified.
One possible fix was listed here:
http://paste.lisp.org/display/42612
In the mean time, as a workaround, export HGENCODING="UTF-8" causes hg to work
as expected.
----------
messages: 3350
nosy: carson
priority: bug
status: unread
title: OS X encoding casues LookupError
topic: macos
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue600>
____________________________________________________
More information about the Mercurial-devel
mailing list