[ python-Bugs-1678647 ] Weird behavior Exception with unicode string
SourceForge.net
noreply at sourceforge.net
Mon Mar 12 01:20:55 CET 2007
Bugs item #1678647, was opened at 2007-03-11 21:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1678647&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Unicode
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Leandro Lucarella (llucax)
Assigned to: M.-A. Lemburg (lemburg)
Summary: Weird behavior Exception with unicode string
Initial Comment:
This simple python program:
-------------------------------
raise Exception(u'Muri\u00f3')
-------------------------------
prints:
-----------------------------------
Traceback (most recent call last):
File "pylog.py", line 1, in ?
raise Exception(u'Muri\u00f3')
Exception
-----------------------------------
While not using an unicode character, seems to work fine (even if using an unicode parameter):
--------------------------
raise Exception(u'Murio')
--------------------------
prints:
-----------------------------------
Traceback (most recent call last):
File "pylog.py", line 1, in ?
raise Exception(u'Murio')
Exception: Murio
-----------------------------------
This seems to break the logging module when calling logging.exception(u'Muri\u00f3'), for example.
Tested in Python 2.4.4 and 2.5 (debian).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1678647&group_id=5470
More information about the Python-bugs-list
mailing list