37378ae56a2f

web: fix diff line encoding
[view raw] [browse files]
author Steve Losh <steve@dwaiter.com>
date Wed, 14 Jul 2010 09:23:24 -0400
parents ac571288381e
children 216e52471475
branches/tags (none)
files review/web.py

Changes

--- a/review/web.py	Wed Jul 14 15:02:35 2010 +0200
+++ b/review/web.py	Wed Jul 14 09:23:24 2010 -0400
@@ -10,6 +10,7 @@
 from mercurial.util import email
 
 import api, messages
+from rutil import fromlocal
 
 def unbundle():
     package_path = os.path.split(os.path.realpath(__file__))[0]
@@ -67,7 +68,7 @@
     'categorize_signoffs': _categorize_signoffs,
     'map': map,
     'str': str,
-    'decode': lambda s: s.decode('utf-8'),
+    'decode': fromlocal,
     'markdown': markdowner.convert,
     'b64': base64.b64encode,
 }