summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-04 11:53:01 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-04 11:53:01 (GMT)
commit061fe342622f94a199f43976d98a66373c6cdd1e (patch)
treeaf7824784098c2fbc0cc047ed65928979c22d57c /Modules/_tkinter.c
parent8e4dd08f23c4c52d136c38943041c9b5f14eaf42 (diff)
parented8ba14441d5a9c97c0cb8ba9e262595cf94dd1a (diff)
downloadcpython-061fe342622f94a199f43976d98a66373c6cdd1e.zip
cpython-061fe342622f94a199f43976d98a66373c6cdd1e.tar.gz
cpython-061fe342622f94a199f43976d98a66373c6cdd1e.tar.bz2
Remove all other uses of the C tolower()/toupper() which could break with a Turkish locale.
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r--Modules/_tkinter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index 2f83165..ffb8ab0 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -649,8 +649,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);