]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41038: Fix non-ASCII string corruption in Win32 resource files (GH-20985)
authorNikita Nemkin <nikita@nemkin.ru>
Wed, 24 Jun 2020 16:27:42 +0000 (21:27 +0500)
committerGitHub <noreply@github.com>
Wed, 24 Jun 2020 16:27:42 +0000 (17:27 +0100)
commit33b79b11b891adea5a916df8e3779505b37aabe7
tree9fe2adc08f7b4dadcae4bcc3c869a35ca84d9deb
parent0430dfac629b4eb0e899a09b899a494aa92145f6
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.
PC/python_ver_rc.h