mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
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:
parent
ace2ccf387
commit
44b3b5457a
3 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue