Message12439
A Unicode literal in a .py file containing a lone
surrogate will cause a .pyc file to be written that
causes an exception in the UTF-8 decoder when it is loaded.
This is fixed in 2.3 but a fix is needed for 2.2 that
doesn't require the magic number to be changed.
A solution appears to be a UTF-8 decoder that accepts
the correct *and* the malformed version for such
Unicode strings.
(See python-dev discussion, subject "utf8 issue" in
Aug/Sep 2002.) |
|
Date |
User |
Action |
Args |
2007-08-23 14:05:52 | admin | link | issue610783 messages |
2007-08-23 14:05:52 | admin | create | |
|