Eliminate some locale-dependent calls to isspace and tolower.

This commit is contained in:
Mark Dickinson 2009-05-03 20:59:48 +00:00
parent 85e269b37d
commit 777e4ff503
3 changed files with 11 additions and 11 deletions

View file

@ -718,7 +718,7 @@ _PyOS_double_to_string(char *buf, size_t buf_len, double val,
/* Convert to upper case. */
char *p;
for (p = buf; *p; p++)
*p = toupper(*p);
*p = Py_TOUPPER(*p);
}
if (ptype)