Patch #1213831: Fix typo in unicodedata._getcode.
Will backport to Python 2.4.
diff --git a/Misc/NEWS b/Misc/NEWS
index fca9b55..1ffa307 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -143,6 +143,8 @@
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 021bacf..be966f0 100644
--- a/Modules/unicodedata.c
+++ b/Modules/unicodedata.c
@@ -820,7 +820,7 @@
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;
}