summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-02-09 22:14:42 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-02-09 22:14:42 (GMT)
commitc73c561181c3ea3bf15c908a827878e1450a5ac6 (patch)
treef924a60b5c1b5aa172cf3eba2c39605789a7017c /Modules/posixmodule.c
parent859cd4723f07e2b1da7387f5be0f2ce0a195974d (diff)
parent4de7457009d3dac9c93cc5b471d20a8d5e92ff33 (diff)
downloadcpython-c73c561181c3ea3bf15c908a827878e1450a5ac6.zip
cpython-c73c561181c3ea3bf15c908a827878e1450a5ac6.tar.gz
cpython-c73c561181c3ea3bf15c908a827878e1450a5ac6.tar.bz2
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), mpdecimal (needs to build without Python.h).
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 40645ea..f2bbd9d 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1172,7 +1172,7 @@ os2_formatmsg(char *msgbuf, int msglen, char *reason)
if (strlen(msgbuf) > 0) { /* If Non-Empty Msg, Trim CRLF */
char *lastc = &msgbuf[ strlen(msgbuf)-1 ];
- while (lastc > msgbuf && isspace(Py_CHARMASK(*lastc)))
+ while (lastc > msgbuf && Py_ISSPACE(Py_CHARMASK(*lastc)))
*lastc-- = '\0'; /* Trim Trailing Whitespace (CRLF) */
}