review/util.py @ 8ccff9378aba

cli: use unicode for comments and signoffs
author Steve Losh <steve@stevelosh.com>
date Fri, 09 Jul 2010 22:13:27 -0400
parents 5dec221dd171
children (none)
from mercurial import encoding

def tolocal(s):
    return encoding.tolocal(s.encode('UTF-8'))

def fromlocal(s):
    return encoding.fromlocal(s).decode('UTF-8')