review/rutil.py @ 96afc843f1a7

util: replace, dammit
author Steve Losh <steve@stevelosh.com>
date Wed, 14 Jul 2010 20:14:59 -0400
parents 1b9066798f87
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')