Remove all other uses of the C tolower()/toupper() which could break with a Turkish locale.

(except in the strop module, which is deprecated anyway)
This commit is contained in:
Antoine Pitrou 2011-10-04 13:55:37 +02:00
parent ace2ccf387
commit 44b3b5457a
3 changed files with 6 additions and 6 deletions

View file

@ -663,8 +663,8 @@ Tkapp_New(char *screenName, char *baseName, char *className,
}
strcpy(argv0, className);
if (isupper(Py_CHARMASK(argv0[0])))
argv0[0] = tolower(Py_CHARMASK(argv0[0]));
if (Py_ISUPPER(Py_CHARMASK(argv0[0])))
argv0[0] = Py_TOLOWER(Py_CHARMASK(argv0[0]));
Tcl_SetVar(v->interp, "argv0", argv0, TCL_GLOBAL_ONLY);
ckfree(argv0);