[Patches] [ python-Patches-1213831 ] Trivial typo in unicodedata._getcode

SourceForge.net noreply at sourceforge.net
Sun Sep 18 10:19:17 CEST 2005


Patches item #1213831, was opened at 2005-06-03 00:00
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1213831&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: None
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Darek Suchojad (dsuch)
Assigned to: Martin v. Löwis (loewis)
Summary: Trivial typo in unicodedata._getcode

Initial Comment:
Hi,
I think there's a typo in unicodedata module's _getcode
function.
Line 823 (today's CVS build) should be 

if (L != -1 && V != -1 && T != -1 && pos-name == namelen) {

not 

if (V != -1 && V != -1 && T != -1 && pos-name == namelen) {

as in attached patch.

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

>Comment By: Martin v. Löwis (loewis)
Date: 2005-09-18 10:19

Message:
Logged In: YES 
user_id=21627

Thanks for the patch. Committed as

NEWS 1.1368
unicodedata.c 2.35
NEWS 1.1193.2.100
unicodedata.c 2.32.2.1


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

Comment By: Raymond Hettinger (rhettinger)
Date: 2005-06-03 02:36

Message:
Logged In: YES 
user_id=80475

Martin, I believe this is your code.

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

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


More information about the Patches mailing list