review/rutil.py @ a572f4405909

api: it's 2010 -- time to use git diffs

fixes issue 47
author Steve Losh <steve@stevelosh.com>
date Tue, 20 Jul 2010 19:04:57 -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')