mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +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
|
@ -519,7 +519,7 @@ set_error(void)
|
|||
/* If non-empty msg, trim CRLF */
|
||||
char *lastc = &outbuf[ strlen(outbuf)-1 ];
|
||||
while (lastc > outbuf &&
|
||||
isspace(Py_CHARMASK(*lastc))) {
|
||||
Py_ISSPACE(Py_CHARMASK(*lastc))) {
|
||||
/* Trim trailing whitespace (CRLF) */
|
||||
*lastc-- = '\0';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue