Skip to content

[3.13] gh-93251: Decode localized socket error messages from the locale encoding (GH-154683)#154725

Open
miss-islington wants to merge 1 commit into
python:3.13from
miss-islington:backport-5afbb60-3.13
Open

[3.13] gh-93251: Decode localized socket error messages from the locale encoding (GH-154683)#154725
miss-islington wants to merge 1 commit into
python:3.13from
miss-islington:backport-5afbb60-3.13

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

The gai_strerror() and hstrerror() messages were decoded as UTF-8, so
gaierror and herror could be replaced with UnicodeDecodeError if the
message is localized and the locale encoding is not UTF-8.
(cherry picked from commit 5afbb60)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Fable 5 noreply@anthropic.com

…e encoding (pythonGH-154683)

The gai_strerror() and hstrerror() messages were decoded as UTF-8, so
gaierror and herror could be replaced with UnicodeDecodeError if the
message is localized and the locale encoding is not UTF-8.
(cherry picked from commit 5afbb60)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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.

2 participants