terminal encoding
muyuubyou
muyuubyou at gmail.com
Sun Feb 22 17:01:21 UTC 2009
Hi, just tried out Mercurial today after some research and having some
Git experience.
I was trying Mercurial in my Mac, following the tutorial in the wiki
and I bumped into this:
----
$ hg clone http://www.selenic.com/repo/hello my-hello
requesting all changes
adding changesets
adding manifests
adding file changes
added 2 changesets with 2 changes to 2 files
abort: unknown encoding: X-MAC-JAPANESE, please check your locale settings
----
Googling around I found this problem with 10.5 (I'm using 10.4):
http://www.selenic.com/mercurial/wiki/index.cgi/Character_Encoding_On_OSX
Then I found out that this has been solved (AFAIK) with the inclusion
of the environment variable HGENCODING, so I can just do:
export HGENCODING="UTF-8"
, and it works.
The problem is that before finding out this, I read other suggestions
to set the locale to UTF8 via .profile or whatever applied to each
one's terminal. This is a major nuisance if you actually want to keep
your locale.
Thankfully I kept on looking and found a solution. Wouldn't it be
possible to add this HGENCODING variable during install so others
don't run into this headache and potential deal-breaker?
Regards
Muyuu
More information about the Mercurial
mailing list