[Patches] [ python-Patches-926375 ] unichr(wide) error on ucs2 build

SourceForge.net noreply at sourceforge.net
Wed Mar 31 13:52:09 EST 2004


Patches item #926375, was opened at 2004-03-31 02:51
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=926375&group_id=5470

Category: Core (C code)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Hye-Shik Chang (perky)
Assigned to: Nobody/Anonymous (nobody)
Summary: unichr(wide) error on ucs2 build

Initial Comment:
PyUnicode_FromOrdinal has code supporting UCS2 build
already. But it is disabled by range validating routine.
I think it should be either removed or modified to
allow wide characters. (Please see the attachment.)

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

>Comment By: Martin v. Löwis (loewis)
Date: 2004-03-31 20:52

Message:
Logged In: YES 
user_id=21627

PEP 261 specifies that unichr() should raise a ValueError on
narrow builds, so this check must stay the way it is. If you
want to make it consistent, please remove the useless
support for UTF-16 instead.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=926375&group_id=5470



More information about the Patches mailing list