diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-04 11:55:37 (GMT) |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-04 11:55:37 (GMT) |
| commit | 44b3b5457a8af636504940f508b2888f6e080ca7 (patch) | |
| tree | dbb135c9572e914afbf996dde8f5aa4e15bdd593 /Modules/_tkinter.c | |
| parent | ace2ccf387fbe751e09fdb4bd507a3702b637d8a (diff) | |
| download | cpython-44b3b5457a8af636504940f508b2888f6e080ca7.zip cpython-44b3b5457a8af636504940f508b2888f6e080ca7.tar.gz cpython-44b3b5457a8af636504940f508b2888f6e080ca7.tar.bz2 | |
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)
Diffstat (limited to 'Modules/_tkinter.c')
| -rw-r--r-- | Modules/_tkinter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 01d6284..40c8be2 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -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); |
