mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter.
I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag).
This commit is contained in:
parent
b6ed17344b
commit
4de7457009
11 changed files with 19 additions and 17 deletions
|
|
@ -414,7 +414,7 @@ parse_number(STRINGLIB_CHAR *ptr, Py_ssize_t len,
|
|||
STRINGLIB_CHAR *end = ptr + len;
|
||||
STRINGLIB_CHAR *remainder;
|
||||
|
||||
while (ptr<end && isdigit(*ptr))
|
||||
while (ptr<end && Py_ISDIGIT(*ptr))
|
||||
++ptr;
|
||||
remainder = ptr;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue