[Python-bugs-list] [ python-Bugs-529104 ] broken error handling in unicode-escape

noreply@sourceforge.net noreply@sourceforge.net
Tue, 12 Mar 2002 12:37:38 -0800


Bugs item #529104, was opened at 2002-03-12 21:37
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=529104&group_id=5470

Category: Unicode
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Walter Dörwald (doerwalter)
Assigned to: M.-A. Lemburg (lemburg)
Summary: broken error handling in unicode-escape

Initial Comment:
Error handling for decoding unicode-escape encoded
string seems the be slightly broken:

Python 2.2 (#2, Mar  1 2002, 17:32:59) 
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on 
linux2
Type "help", "copyright", "credits" or "license" for 
more information.
>>> "\N{foo}xx".decode("unicode-
escape", "ignore")      
u'\x08xx'
>>> "\".decode("unicode-escape")                    
u'\\U082a74f8'

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=529104&group_id=5470