review/rutil.py @ 580225427d99

Add "*.un~" to .hgignore.
author Steve Losh <steve@stevelosh.com>
date Thu, 27 Jan 2011 17:54:35 -0500
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')