review/rutil.py @ 5a30d0a6ca83

api: Accept empty line in diffs, fix issue57
author Benoit Allard <benoit@aeteurope.nl>
date Wed, 28 Jul 2010 15:48:43 +0200
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')