rzel / rudix

Automatically exported from code.google.com/p/rudix
Other
0 stars 0 forks source link

Problem installing Mercurial #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install mercurial for Snow Leopard
2. /usr/local/bin/hg  version --version
3. My machine is running 10.6.2

Got:
oggy:~ alleon$ /usr/local/bin/hg  version --version
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 27, in <module>
    mercurial.dispatch.run()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 16,
in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 27,
in dispatch
    return _runcatch(u, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 144,
in _runcatch
    ui.warn(_("** unknown exception encountered, details follow\n"))
  File "/Library/Python/2.6/site-packages/mercurial/i18n.py", line 43, in
gettext
    return u.encode(encoding.encoding, "replace")
  File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line
75, in __getattribute__
    self._load()
  File "/Library/Python/2.6/site-packages/mercurial/demandimport.py", line
47, in _load
    mod = _origimport(head, globals, locals)
  File "/Library/Python/2.6/site-packages/mercurial/encoding.py", line 20,
in <module>
    encoding = locale.getlocale()[1]
  File
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.p
y",
line 478, in getlocale
    return _parse_localename(localename)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.p
y",
line 391, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8

Original issue reported on code.google.com by guillaum...@gmail.com on 8 Dec 2009 at 2:45

GoogleCodeExporter commented 9 years ago
I bet UTF-8 is not a valid locale, mine is pt_BR.UTF-8 and it's working. I know 
en_US and en_US.UTF-8 are valid 
locales too. Can you test this?

$ export LANG=en_US.UTF-8
$ /usr/local/bin/hg --version

Original comment by ruda.moura@gmail.com on 12 Mar 2010 at 8:05

GoogleCodeExporter commented 9 years ago
Fixed in version 1.6.2

Snowflake:~ ruda$ export LANG=UTF-8
Snowflake:~ ruda$ hg version --version
Mercurial Distributed SCM (version 1.6.2)

Copyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Download available here:  
http://code.google.com/p/rudix/downloads/detail?name=mercurial-1.6.2-0.dmg

Original comment by ruda.moura@gmail.com on 12 Aug 2010 at 10:41