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 odormond
Recipients
Date 2007-06-06.16:38:03
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Hello,

 I've been able to fix this entity conversion bug with the following patch.

Cheers,

Odie

--- /usr/lib/python2.5/sgmllib.py       2007-05-27 17:55:15.000000000 +0200
+++ modules/sgmllib.py  2007-06-06 18:29:13.000000000 +0200
@@ -396,7 +396,7 @@
         return self.convert_codepoint(n)
 
     def convert_codepoint(self, codepoint):
-        return chr(codepoint)
+        return unichr(codepoint)
 
     def handle_charref(self, name):
         """Handle character reference, no need to override."""
History
Date User Action Args
2007-08-23 14:51:44adminlinkissue1651995 messages
2007-08-23 14:51:44admincreate