# HG changeset patch # User Alexis S. L. Carvalho # Date 1166242906 7200 # Node ID 0dd07dd63db3bd48c4c4989eac150c9a9a28058b # Parent 733d56b8830f98d06bcdcb8154cd70e14378a368 templater.py: fix obfuscate diff --git a/mercurial/templater.py b/mercurial/templater.py --- a/mercurial/templater.py +++ b/mercurial/templater.py @@ -204,7 +204,7 @@ def nl2br(text): return text.replace('\n', '
\n') def obfuscate(text): - text = unicode(text, 'utf-8', 'replace') + text = unicode(text, util._encoding, 'replace') return ''.join(['&#%d;' % ord(c) for c in text]) def domain(author):