[pypy-svn] r15633 - in pypy/dist: lib-python pypy/module/_codecs pypy/module/_codecs/test
nik at codespeak.net
nik at codespeak.net
Thu Aug 4 17:53:54 CEST 2005
Author: nik
Date: Thu Aug 4 17:53:52 2005
New Revision: 15633
Modified:
pypy/dist/lib-python/failure_list.txt
pypy/dist/pypy/module/_codecs/app_codecs.py
pypy/dist/pypy/module/_codecs/test/test_codecs.py
Log:
fixed raw_unicode_escape decoding bug
Modified: pypy/dist/lib-python/failure_list.txt
==============================================================================
--- pypy/dist/lib-python/failure_list.txt (original)
+++ pypy/dist/lib-python/failure_list.txt Thu Aug 4 17:53:52 2005
@@ -23,8 +23,7 @@
- our compilers need to recognize BOM markers
- eval etc should accept dict subclasses
- hex/oct should output '-' for negative numbers
- - unicode("\u0663", 'raw-unicode-escape') does not work properly
- (nik is working on this)
+ - FIXED unicode("\u0663", 'raw-unicode-escape') does not work properly
- disallow interning of string subclasses
- __future__ import division problems
Modified: pypy/dist/pypy/module/_codecs/app_codecs.py
==============================================================================
--- pypy/dist/pypy/module/_codecs/app_codecs.py (original)
+++ pypy/dist/pypy/module/_codecs/app_codecs.py Thu Aug 4 17:53:52 2005
@@ -1621,6 +1621,9 @@
pos = i = res[1]
p += res[0]
i += 1
+ else:
+ p += unichr(x)
+ pos += count
else:
if (x > 0x10000):
res = unicode_call_errorhandler(
Modified: pypy/dist/pypy/module/_codecs/test/test_codecs.py
==============================================================================
--- pypy/dist/pypy/module/_codecs/test/test_codecs.py (original)
+++ pypy/dist/pypy/module/_codecs/test/test_codecs.py Thu Aug 4 17:53:52 2005
@@ -38,4 +38,4 @@
def test_raw_unicode_escape(self):
assert unicode("\u0663", "raw-unicode-escape") == u"\u0663"
- assert u"\u0663".decode("raw-unicode-escape") == "\u0663"
+ assert u"\u0663".encode("raw-unicode-escape") == "\u0663"
More information about the Pypy-commit
mailing list