Monday, July 20, 2009

ValueError: unknown locale: UTF-8

$ hg clone ssh://
Traceback (most recent call last):
File "/usr/local/bin/hg", line 25, in <module>
File "/Library/Python/2.5/site-packages/mercurial/", line 75, in __getattribute__
File "/Library/Python/2.5/site-packages/mercurial/", line 47, in _load
mod = _origimport(head, globals, locals)
File "/Library/Python/2.5/site-packages/mercurial/", line 93, in <module>
_encoding = locale.getlocale()[1]
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/", line 460, in getlocale
return _parse_localename(localename)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/", line 373, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
$ export LC_ALL=en_US.UTF-8
$ export LANG=en_US.UTF-8
$ hg clone ssh://
destination directory: public
requesting all changes
adding changesets
adding manifests
adding file changes
added 7 changesets with 9 changes to 3 files
updating working directory
3 files updated, 0 files merged, 0 files removed, 0 files unresolved

No comments: