diff Python/formatter_unicode.c @ 82111:c08bcf5302ec 3.3

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).
author Antoine Pitrou <solipsis@pitrou.net>
date Sat, 09 Feb 2013 23:14:42 +0100
parents dc2909a62262
children ef5175d08e7e 10e59553a8de
line wrap: on
line diff
--- a/Python/formatter_unicode.c	Sat Feb 09 22:38:12 2013 +0200
+++ b/Python/formatter_unicode.c	Sat Feb 09 23:14:42 2013 +0100
@@ -401,7 +401,7 @@
 {
     Py_ssize_t remainder;
 
-    while (pos<end && isdigit(PyUnicode_READ_CHAR(s, pos)))
+    while (pos<end && Py_ISDIGIT(PyUnicode_READ_CHAR(s, pos)))
         ++pos;
     remainder = pos;