Monday, July 20, 2009

ValueError: unknown locale: UTF-8

$ hg clone ssh://hg@bitbucket.org/satoshiabe/public/
Traceback (most recent call last):
File "/usr/local/bin/hg", line 25, in <module>
mercurial.util.set_binary(fp)
File "/Library/Python/2.5/site-packages/mercurial/demandimport.py", line 75, in __getattribute__
self._load()
File "/Library/Python/2.5/site-packages/mercurial/demandimport.py", line 47, in _load
mod = _origimport(head, globals, locals)
File "/Library/Python/2.5/site-packages/mercurial/util.py", line 93, in <module>
_encoding = locale.getlocale()[1]
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/locale.py", line 460, in getlocale
return _parse_localename(localename)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/locale.py", 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://hg@bitbucket.org/satoshiabe/public/
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: