review/rutil.py @ fa1f7726b08b

Merge.
author Steve Losh <steve@stevelosh.com>
date Mon, 18 Jul 2011 13:22:12 -0400
parents 96afc843f1a7
children (none)
from mercurial import encoding

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

def fromlocal(s):
    return s.decode(encoding.encoding, 'replace')