Author: Amaury Forgeot d'Arc <[email protected]>
Branch: decimal-libmpdec
Changeset: r73801:c43923fde747
Date: 2014-09-27 21:12 +0200
http://bitbucket.org/pypy/pypy/changeset/c43923fde747/
Log: Not tested, does not translate: remove code.
diff --git a/pypy/module/_decimal/interp_decimal.py
b/pypy/module/_decimal/interp_decimal.py
--- a/pypy/module/_decimal/interp_decimal.py
+++ b/pypy/module/_decimal/interp_decimal.py
@@ -266,8 +266,8 @@
s = rffi.charp2str(ptr)
if len(s) == 0 or (len(s) == 1 and 32 <= ord(s[0]) < 128):
return None, ptr
- u = locale_decode(s)
- s = u.encode('utf-8')
+ # XXX use mbstowcs()
+ s = s
ptr = rffi.str2charp(s)
return ptr, ptr
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit