This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Date 2002-09-17.20:47:54
SpamBayes Score
Marked as misclassified
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:52adminlinkissue610783 messages
2007-08-23 14:05:52admincreate