changeset 3904:0dd07dd63db3

templater.py: fix obfuscate
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sat, 16 Dec 2006 02:21:46 -0200
parents 733d56b8830f
children a8c0365b2ace
files mercurial/templater.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/templater.py	Fri Dec 15 23:19:12 2006 +0100
+++ b/mercurial/templater.py	Sat Dec 16 02:21:46 2006 -0200
@@ -204,7 +204,7 @@
     return text.replace('\n', '<br/>\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):