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

This commit is contained in:
Antoine Pitrou 2011-10-04 13:50:21 +02:00
parent 1665d2c75f
commit ed8ba14441
3 changed files with 6 additions and 6 deletions

View file

@ -661,8 +661,8 @@ Tkapp_New(char *screenName, 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);