96afc843f1a7

util: replace, dammit
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 14 Jul 2010 20:14:59 -0400
parents 16b417409038
children 8f18f574990c
branches/tags (none)
files review/rutil.py

Changes

--- 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')