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 ocean-city
Recipients cpalmer, ocean-city
Date 2008-03-06.07:34:13
SpamBayes Score 0.08921187
Marked as misclassified No
Message-id <1204788854.92.0.986155419958.issue2242@psf.upfronthosting.co.za>
In-reply-to
Content
I reproduced this bug with VC6 + Win2000SP4 + following code.

'+\xc1'.decode("utf7", "ignore")

and this simple patch prevented crash.

Index: Objects/unicodeobject.c
===================================================================
--- Objects/unicodeobject.c	(revision 61262)
+++ Objects/unicodeobject.c	(working copy)
@@ -1506,7 +1506,7 @@
     e = s + size;
 
     while (s < e) {
-        Py_UNICODE ch;
+        char ch;
         restart:
         ch = *s;

Probably this is due to integer conversion, but I didn't look at logic
so much.
History
Date User Action Args
2008-03-06 07:34:15ocean-citysetspambayes_score: 0.0892119 -> 0.08921187
recipients: + ocean-city, cpalmer
2008-03-06 07:34:14ocean-citysetspambayes_score: 0.0892119 -> 0.0892119
messageid: <1204788854.92.0.986155419958.issue2242@psf.upfronthosting.co.za>
2008-03-06 07:34:14ocean-citylinkissue2242 messages
2008-03-06 07:34:14ocean-citycreate