Fix a typo in _localemodule.c (GH-130085)

This commit is contained in:
Bartosz Sławecki 2025-02-13 18:29:26 +01:00 committed by GitHub
parent 451f291baa
commit 07f5e33f2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);