UnicodeDecodeError: 'ascii' codec can't decode byte... errors on OS X
Matthias Pigulla
mp at webfactory.de
Wed Aug 21 09:04:21 UTC 2013
Hi all,
thanks a lot for your help so far!
The hg installation in question is via MacPorts and from what I can tell
it's based on
http://selenic.com/hg/shortlog/f37b5a17e6a0ee17afde2cdde5393dd74715fb58.
The change from http://www.bz.selenic.com/show_bug.cgi?id=3482 seems to be
contained in that.
>I don't see how that error would happen here. The code in question is
>
> doc = e[0].__doc__
> if doc and 'DEPRECATED' in doc and not ui.verbose:
> continue
> doc = gettext(doc)
You're referring to mercurial/help.py", line 329, in helplist.
I have no Python experience and don't know how to sensibly debug/step
through this. But I added a simple print statement one level below this in
the trace, in gettext() at mercurial/i18n.py" line 42, and found that the
last message that is attempted to be looked up is already localized and
indeed contains an Umlaut, so this backs your theory.
The message to be looked up is
Aktualisiert das Arbeitsverzeichnis auf den angegebenen Änderungssatz.
Ohne Angabe eines Änderungssatzes wird auf die Spitze des aktuellen
Zweigs aktualisiert und das aktuelle Lesezeichen verschoben. (siehe
:hg:`help bookmarks`).
which comes from
" Update the repository's working directory to the specified\n"
" changeset. If no changeset is specified, update to the tip of the\n"
" current named branch and move the current bookmark (see :hg:`help\n"
" bookmarks`)."
Any more ideas what I can try? What do you need to reproduce it? Shall I
file a bug report for it?
Thanks!
-mp.
More information about the Mercurial
mailing list