summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-09-18 08:18:51 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2005-09-18 08:18:51 (GMT)
commit410a432579a7e8c66247128af7a16130aa259781 (patch)
tree9a42695b620716a01c378ebe469f5a6c22f99d84
parentfc7cb40d00f38144917359c00d308686bc3f3eba (diff)
downloadcpython-410a432579a7e8c66247128af7a16130aa259781.zip
cpython-410a432579a7e8c66247128af7a16130aa259781.tar.gz
cpython-410a432579a7e8c66247128af7a16130aa259781.tar.bz2
Patch #1213831: Fix typo in unicodedata._getcode.
-rw-r--r--Misc/NEWS2
-rw-r--r--Modules/unicodedata.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 793c4c3..98a1e14 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -65,6 +65,8 @@ Core and builtins
Extension Modules
-----------------
+- Patch #1213831: Fix typo in unicodedata._getcode.
+
- Bug #1007046: os.startfile() did not accept unicode strings encoded in
the file system encoding.
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c
index 4a1e94c..85f5f5f 100644
--- a/Modules/unicodedata.c
+++ b/Modules/unicodedata.c
@@ -753,7 +753,7 @@ _getcode(const char* name, int namelen, Py_UCS4* code)
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;
}