[Python-checkins] python/dist/src/Objects unicodeobject.c, 2.198, 2.199

jhylton at users.sourceforge.net jhylton at users.sourceforge.net
Mon Oct 6 01:08:28 EDT 2003


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv28712/Objects

Modified Files:
	unicodeobject.c 
Log Message:
Fix for SF bug [ 817156 ] invalid \U escape gives 0=length unistr.


Index: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.198
retrieving revision 2.199
diff -C2 -d -r2.198 -r2.199
*** unicodeobject.c	16 Sep 2003 20:30:58 -0000	2.198
--- unicodeobject.c	6 Oct 2003 05:08:26 -0000	2.199
***************
*** 1751,1755 ****
              }
              s += i;
!             if (chr == 0xffffffff)
                  /* _decoding_error will have already written into the
                     target buffer. */
--- 1751,1755 ----
              }
              s += i;
!             if (chr == 0xffffffff && PyErr_Occurred())
                  /* _decoding_error will have already written into the
                     target buffer. */





More information about the Python-checkins mailing list