mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix a typo in _localemodule.c
(GH-130085)
This commit is contained in:
parent
451f291baa
commit
07f5e33f2e
1 changed files with 1 additions and 1 deletions
|
@ -605,7 +605,7 @@ change_locale(int category, char **oldloc)
|
|||
/* Keep a copy of the LC_CTYPE locale */
|
||||
*oldloc = setlocale(LC_CTYPE, NULL);
|
||||
if (!*oldloc) {
|
||||
PyErr_SetString(PyExc_RuntimeError, "faild to get LC_CTYPE locale");
|
||||
PyErr_SetString(PyExc_RuntimeError, "failed to get LC_CTYPE locale");
|
||||
return -1;
|
||||
}
|
||||
*oldloc = _PyMem_Strdup(*oldloc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue