review/rutil.py @ 48541d29e527

Merged in benallard/hg-review (pull request #1)
author Steve Losh <steve@stevelosh.com>
date Wed, 29 Jun 2011 19:47:16 -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')