review/util.py @ 5dec221dd171

guts: fix filename encoding

note: this made me drink. a lot.
author Steve Losh <steve@stevelosh.com>
date Fri, 09 Jul 2010 21:44:09 -0400
parents (none)
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')