Skip to content

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

Merged
serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-5afbb60-3.14
Jul 26, 2026
Merged

[3.14] gh-93251: Decode localized socket error messages from the locale encoding (GH-154683)#154724
serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-5afbb60-3.14

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>
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) July 26, 2026 09:33
@serhiy-storchaka
serhiy-storchaka merged commit b9723f9 into python:3.14 Jul 26, 2026
50 checks passed
@miss-islington
miss-islington deleted the backport-5afbb60-3.14 branch July 26, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants