Kaydet (Commit) 410a4325 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Patch #1213831: Fix typo in unicodedata._getcode.

üst fc7cb40d
...@@ -65,6 +65,8 @@ Core and builtins ...@@ -65,6 +65,8 @@ Core and builtins
Extension Modules Extension Modules
----------------- -----------------
- Patch #1213831: Fix typo in unicodedata._getcode.
- Bug #1007046: os.startfile() did not accept unicode strings encoded in - Bug #1007046: os.startfile() did not accept unicode strings encoded in
the file system encoding. the file system encoding.
......
...@@ -753,7 +753,7 @@ _getcode(const char* name, int namelen, Py_UCS4* code) ...@@ -753,7 +753,7 @@ _getcode(const char* name, int namelen, Py_UCS4* code)
pos += len; pos += len;
find_syllable(pos, &len, &T, TCount, 2); find_syllable(pos, &len, &T, TCount, 2);
pos += len; 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; *code = SBase + (L*VCount+V)*TCount + T;
return 1; return 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment