mirror of
https://github.com/python/cpython
synced 2024-09-05 16:38:56 +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.
This commit is contained in:
parent
0430dfac62
commit
33b79b11b8
|
@ -1,6 +1,7 @@
|
||||||
// Resource script for Python core DLL.
|
// Resource script for Python core DLL.
|
||||||
// Currently only holds version information.
|
// Currently only holds version information.
|
||||||
//
|
//
|
||||||
|
#pragma code_page(1252)
|
||||||
#include "winver.h"
|
#include "winver.h"
|
||||||
|
|
||||||
#define PYTHON_COMPANY "Python Software Foundation"
|
#define PYTHON_COMPANY "Python Software Foundation"
|
||||||
|
|
Loading…
Reference in a new issue