[pypy-svn] r16954 - pypy/release/0.7.x/pypy/module/_codecs

ac at codespeak.net ac at codespeak.net
Sun Aug 28 11:47:40 CEST 2005


Author: ac
Date: Sun Aug 28 11:47:40 2005
New Revision: 16954

Modified:
   pypy/release/0.7.x/pypy/module/_codecs/app_codecs.py
Log:
Fix utf-8 encoder.

Modified: pypy/release/0.7.x/pypy/module/_codecs/app_codecs.py
==============================================================================
--- pypy/release/0.7.x/pypy/module/_codecs/app_codecs.py	(original)
+++ pypy/release/0.7.x/pypy/module/_codecs/app_codecs.py	Sun Aug 28 11:47:40 2005
@@ -1303,6 +1303,8 @@
                 p += (chr((0x80 | ((ord(ch) >> 6) & 0x3f))))
                 p += (chr((0x80 | (ord(ch) & 0x3f))))
                 continue
+            else:
+                p.extend(encodeUCS4(ord(ch)))
     return p
 
 def encodeUCS4(ch):



More information about the Pypy-commit mailing list