Mercurial > cpython-lru_cache-weakref
diff Modules/_tkinter.c @ 72655:fe48e2b3dbee 3.2
Remove all other uses of the C tolower()/toupper() which could break with a Turkish locale.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Tue, 04 Oct 2011 13:50:21 +0200 |
| parents | 65a6a2f8721f |
| children | 9a07b73abdb1 969bbc6700a0 |
line wrap: on
line diff
--- a/Modules/_tkinter.c Tue Oct 04 13:35:28 2011 +0200 +++ b/Modules/_tkinter.c Tue Oct 04 13:50:21 2011 +0200 @@ -661,8 +661,8 @@ } 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);
