summaryrefslogtreecommitdiffstats
path: root/Python/dynload_aix.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 /Python/dynload_aix.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 'Python/dynload_aix.c')
-rw-r--r--Python/dynload_aix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/dynload_aix.c b/Python/dynload_aix.c
index b4f71f2..f40a0be 100644
--- a/Python/dynload_aix.c
+++ b/Python/dynload_aix.c
@@ -4,7 +4,6 @@
#include "Python.h"
#include "importdl.h"
-#include <ctype.h> /* for isdigit() */
#include <errno.h> /* for global errno */
#include <string.h> /* for strerror() */
#include <stdlib.h> /* for malloc(), free() */
@@ -141,7 +140,7 @@ aix_loaderror(const char *pathname)
if (nerr == load_errtab[j].errNo && load_errtab[j].errstr)
ERRBUF_APPEND(load_errtab[j].errstr);
}
- while (isdigit(Py_CHARMASK(*message[i]))) message[i]++ ;
+ while (Py_ISDIGIT(Py_CHARMASK(*message[i]))) message[i]++ ;
ERRBUF_APPEND(message[i]);
ERRBUF_APPEND("\n");
}