[pypy-commit] pypy py3k: latin1 is not rpython, latin-1 is

antocuni noreply at buildbot.pypy.org
Wed Jul 18 17:11:13 CEST 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r56170:94d4d8dfb184
Date: 2012-07-18 17:10 +0200
http://bitbucket.org/pypy/pypy/changeset/94d4d8dfb184/

Log:	latin1 is not rpython, latin-1 is

diff --git a/pypy/objspace/std/longtype.py b/pypy/objspace/std/longtype.py
--- a/pypy/objspace/std/longtype.py
+++ b/pypy/objspace/std/longtype.py
@@ -33,7 +33,7 @@
                                     unicode_to_decimal_w(space, w_value))
         elif space.isinstance_w(w_value, space.w_bytearray):
             strvalue = space.bufferstr_w(w_value)
-            return string_to_w_long(space, w_longtype, strvalue.decode('latin1'))
+            return string_to_w_long(space, w_longtype, strvalue.decode('latin-11'))
         else:
             # otherwise, use the __int__() or the __trunc__ methods
             w_obj = w_value


More information about the pypy-commit mailing list