mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264)
This commit is contained in:
parent
10f8ce6688
commit
d53fe5f407
20 changed files with 35 additions and 35 deletions
|
@ -1103,7 +1103,7 @@ get_locale_encoding(char **locale_encoding)
|
|||
{
|
||||
#ifdef MS_WINDOWS
|
||||
char encoding[20];
|
||||
PyOS_snprintf(encoding, sizeof(encoding), "cp%d", GetACP());
|
||||
PyOS_snprintf(encoding, sizeof(encoding), "cp%u", GetACP());
|
||||
#elif defined(__ANDROID__) || defined(__VXWORKS__)
|
||||
const char *encoding = "UTF-8";
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue