review/rutil.py @ 37378ae56a2f

web: fix diff line encoding
author Steve Losh <steve@dwaiter.com>
date Wed, 14 Jul 2010 09:23:24 -0400
parents 1b9066798f87
children 96afc843f1a7
from mercurial import encoding

def tolocal(s):
    return encoding.tolocal(s.encode('UTF-8'))

def fromlocal(s):
    return encoding.fromlocal(s).decode('UTF-8')