[New-bugs-announce] [issue41038] VersionInfo string is corrupted when building on Windows with DBCS or UTF-8 locale

Nikita Nemkin report at bugs.python.org
Fri Jun 19 11:18:28 EDT 2020


New submission from Nikita Nemkin <nikita at nemkin.ru>:

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.

Another possible fix is to use codepage 65001, but that will require replacing \xA9 with an actual ©, because it seems impossible to escape unicode characters in VersionInfo strings.

----------
components: Windows
messages: 371888
nosy: nnemkin, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: VersionInfo string is corrupted when building on Windows with DBCS or UTF-8 locale
type: behavior
versions: Python 3.10, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41038>
_______________________________________


More information about the New-bugs-announce mailing list