# HG changeset patch # User Steve Losh # Date 1279113804 14400 # Node ID 37378ae56a2f4aa58313c91af64474c9e25a0cd5 # Parent ac571288381e9fa1589bfe2ad6514d64442b0a49 web: fix diff line encoding diff -r ac571288381e -r 37378ae56a2f review/web.py --- 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, }