1. Armin Rigo
  2. cpython-withatomic

Commits

Martin von Löwis  committed 1cf1703

Patch #1213831: Fix typo in unicodedata._getcode.

  • Participants
  • Parent commits 0da3975
  • Branches 2.4

Comments (0)

Files changed (2)

File Misc/NEWS

View file
  • Ignore whitespace
 Extension Modules
 -----------------
 
+- Patch #1213831: Fix typo in unicodedata._getcode.
+
 - Bug #1007046: os.startfile() did not accept unicode strings encoded in
   the file system encoding.
 

File Modules/unicodedata.c

View file
  • Ignore whitespace
 	pos += len;
 	find_syllable(pos, &len, &T, TCount, 2);
 	pos += len;
-	if (V != -1 && V != -1 && T != -1 && pos-name == namelen) {
+	if (L != -1 && V != -1 && T != -1 && pos-name == namelen) {
 	    *code = SBase + (L*VCount+V)*TCount + T;
 	    return 1;
 	}