mirror of
https://github.com/python/cpython.git
synced 2026-01-26 21:03:34 +00:00
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>
This commit is contained in:
parent
7329c8c7a2
commit
153e20e087
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user