Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.8] bpo-41038: Fix non-ASCII string corruption in Win32 resource files (GH-20985) #21123

Merged
merged 1 commit into from
Jun 24, 2020

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 24, 2020

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 33b79b1)

Co-authored-by: Nikita Nemkin nikita@nemkin.ru

https://bugs.python.org/issue41038

…ythonGH-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 33b79b1)

Co-authored-by: Nikita Nemkin <nikita@nemkin.ru>
@miss-islington
Copy link
Contributor Author

@nnemkin and @zooba: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit fb4a624 into python:3.8 Jun 24, 2020
@miss-islington miss-islington deleted the backport-33b79b1-3.8 branch June 24, 2020 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants