Mercurial > hg
comparison hgext/hgk.py @ 9941:11d7ee94b56a stable
extdiff: prevent exception on double-translation
The docstring is translated twice: once when used as a format string,
and once on display. The second translation fails when the first
translation introduces non-ASCII characters in the string.
The problem is that the gettext module calls unicode(message) on the
string, i.e., it decodes it to a Unicode string using the ASCII
encoding (the default encoding). By translating it into a Unicode
string here, the unicode() call becomes a noop.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Thu, 26 Nov 2009 20:06:45 +0100 |
parents | 4c041f1ee1b4 |
children | 25e572394f5c |
comparison
equal
deleted
inserted
replaced
9939:251812d34c08 | 9941:11d7ee94b56a |
---|