# HG changeset patch # User Steve Losh # Date 1279152899 14400 # Node ID 96afc843f1a71a118f93f20f55d1bd9eec372057 # Parent 16b4174090382ad00194d8c9d9677e87fefeb50b util: replace, dammit diff -r 16b417409038 -r 96afc843f1a7 review/rutil.py --- a/review/rutil.py Wed Jul 14 19:42:32 2010 -0400 +++ b/review/rutil.py Wed Jul 14 20:14:59 2010 -0400 @@ -4,5 +4,5 @@ return encoding.tolocal(s.encode('UTF-8')) def fromlocal(s): - return encoding.fromlocal(s).decode('UTF-8') + return s.decode(encoding.encoding, 'replace')