review/rutil.py @ 1b9066798f87

guts: fix a couple of encoding issues and add encoding tests
author Steve Losh <steve@stevelosh.com>
date Fri, 09 Jul 2010 22:46:09 -0400
parents review/util.py@5dec221dd171
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')