This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author malin
Recipients malin, matpi
Date 2020-06-16.15:51:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592322684.69.0.637168639861.issue40980@roundup.psfhosted.org>
In-reply-to
Content
Please look at these:

    >>> orig_name = "Ř"
    >>> orig_ch = orig_name.encode("cp1250") # Because why not?
    >>> orig_ch
    b'\xd8'
    >>> name = list(re.match(b"(?P<" + orig_ch + b">)", b"").groupdict().keys())[0]
    >>> name
    'Ø'  # '\xd8'
    >>> name == orig_name
    False
    >>> name.encode("latin-1")
    b'\xd8'
    >>> name.encode("latin-1") == orig_ch
    True

"Ř" (\u0158) --cp1250--> b'\xd8'
"Ø" (\u00d8) --latin-1--> b'\xd8'
History
Date User Action Args
2020-06-16 15:51:24malinsetrecipients: + malin, matpi
2020-06-16 15:51:24malinsetmessageid: <1592322684.69.0.637168639861.issue40980@roundup.psfhosted.org>
2020-06-16 15:51:24malinlinkissue40980 messages
2020-06-16 15:51:24malincreate