[pypy-svn] r60023 - pypy/trunk/pypy/module/_codecs
fijal at codespeak.net
fijal at codespeak.net
Thu Nov 20 16:30:55 CET 2008
Author: fijal
Date: Thu Nov 20 16:30:51 2008
New Revision: 60023
Modified:
pypy/trunk/pypy/module/_codecs/app_codecs.py
Log:
This should return unicode. Seems that because of this all codecs
which were based on charmap were broken.
Modified: pypy/trunk/pypy/module/_codecs/app_codecs.py
==============================================================================
--- pypy/trunk/pypy/module/_codecs/app_codecs.py (original)
+++ pypy/trunk/pypy/module/_codecs/app_codecs.py Thu Nov 20 16:30:51 2008
@@ -210,7 +210,7 @@
"""None
"""
res = PyUnicode_DecodeCharmap(data, len(data), mapping, errors)
- res = ''.join(res)
+ res = u''.join(res)
return res, len(data)
More information about the Pypy-commit
mailing list