Bugs item #924361, was opened at 2004-03-27 08: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=924361&group_id=5470
Category: Unicode
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Klose (doko)
Assigned to: M.-A. Lemburg (lemburg)
Summary: unicodeobjct: bad argument to internal function
Initial Comment:
[forwarded from http://bugs.debian.org/239986]
#! /usr/bin/python2.3
import unicodedata
unicodedata.normalize('NFKC', u'')
I guess (but haven't looked at the source) that
something isn't cleaned up properly in this scenario.
The bug doesn't manifest itself in the normalize() call
itself but the exception is thrown in the next
statement. (eg running unicodedata.normalize('NFKC',
u'') ; x = 1 interactively causes the error to be
printed after the x=1 statement)
The x=1 doesn't seem to be needed, simply hitting
return shows the message.
$ python
Python 2.3.3 (#2, Feb 24 2004, 09:29:20)
[GCC 3.3.3 (Debian)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
import unicodedata
unicodedata.normalize('NFKC', u'')
u''
SystemError: ../Objects/unicodeobject.c:278: bad
argument to internal function
----------------------------------------------------------------------