diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-03-13 20:59:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-13 20:59:55 (GMT) |
commit | d53fe5f407ff4b529628b01a1bcbf21a6aad5c3a (patch) | |
tree | db8a8657e379e60b26fe2bfdbad4da612fbb46b9 /Modules/_localemodule.c | |
parent | 10f8ce66884cd7fee2372b8dae08ca8132091574 (diff) | |
download | cpython-d53fe5f407ff4b529628b01a1bcbf21a6aad5c3a.zip cpython-d53fe5f407ff4b529628b01a1bcbf21a6aad5c3a.tar.gz cpython-d53fe5f407ff4b529628b01a1bcbf21a6aad5c3a.tar.bz2 |
bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264)
Diffstat (limited to 'Modules/_localemodule.c')
-rw-r--r-- | Modules/_localemodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index 96ca68a..036bdb3 100644 --- a/Modules/_localemodule.c +++ b/Modules/_localemodule.c @@ -392,7 +392,7 @@ PyLocale_getdefaultlocale(PyObject* self, PyObject *Py_UNUSED(ignored)) char encoding[20]; char locale[100]; - PyOS_snprintf(encoding, sizeof(encoding), "cp%d", GetACP()); + PyOS_snprintf(encoding, sizeof(encoding), "cp%u", GetACP()); if (GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SISO639LANGNAME, |