summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-06-24 16:42:55 (GMT)
committerGitHub <noreply@github.com>2020-06-24 16:42:55 (GMT)
commitfb4a6241054ad6b7f24d1b32af6827e02936d568 (patch)
tree1290273025c3fecf6b8caeb35610d2ab6c7bdccd /PC
parentadf8708c44945bfa68db8b02c6a1f560f05a5151 (diff)
downloadcpython-fb4a6241054ad6b7f24d1b32af6827e02936d568.zip
cpython-fb4a6241054ad6b7f24d1b32af6827e02936d568.tar.gz
cpython-fb4a6241054ad6b7f24d1b32af6827e02936d568.tar.bz2
bpo-41038: Fix non-ASCII string corruption in Win32 resource files (GH-20985)
In absence of explicit declaration, resource compiler uses system codepage. When this codepage is DBCS or UTF-8, Python's copyright string is corrupted, because it contains copyright sign encoded as \xA9. The fix is to explicitly declare codepage 1252. (cherry picked from commit 33b79b11b891adea5a916df8e3779505b37aabe7) Co-authored-by: Nikita Nemkin <nikita@nemkin.ru>
Diffstat (limited to 'PC')
-rw-r--r--PC/python_ver_rc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/PC/python_ver_rc.h b/PC/python_ver_rc.h
index f95e755..d725a9b 100644
--- a/PC/python_ver_rc.h
+++ b/PC/python_ver_rc.h
@@ -1,6 +1,7 @@
// Resource script for Python core DLL.
// Currently only holds version information.
//
+#pragma code_page(1252)
#include "winver.h"
#define PYTHON_COMPANY "Python Software Foundation"