diff Python/pystrtod.c @ 53712:1f00bc1d115a legacy-trunk

Eliminate some locale-dependent calls to isspace and tolower.
author Mark Dickinson <dickinsm@gmail.com>
date Sun, 03 May 2009 20:59:48 +0000
parents 4762394fc26c
children 4f867f1494d5
line wrap: on
line diff
--- a/Python/pystrtod.c	Sun May 03 20:39:06 2009 +0000
+++ b/Python/pystrtod.c	Sun May 03 20:59:48 2009 +0000
@@ -718,7 +718,7 @@
 		/* Convert to upper case. */
 		char *p;
 		for (p = buf; *p; p++)
-			*p = toupper(*p);
+			*p = Py_TOUPPER(*p);
 	}
 
 	if (ptype)