]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-123803: Support arbitrary code page encodings on Windows (GH-123804)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 18 Nov 2024 17:45:25 +0000 (19:45 +0200)
committerGitHub <noreply@github.com>
Mon, 18 Nov 2024 17:45:25 +0000 (17:45 +0000)
commitf7ef0203d44acb21ab1c5ff0c3e15f9727862760
treeed2d56bf28e690ba1bfb9bd3bf96491b8669722d
parent8fe1926164932f868e6e907ad72a74c2f2372b07
gh-123803: Support arbitrary code page encodings on Windows (GH-123804)

If the cpXXX encoding is not directly implemented in Python, fall back
to use the Windows-specific API codecs.code_page_encode() and
codecs.code_page_decode().
Doc/library/codecs.rst
Doc/whatsnew/3.14.rst
Lib/encodings/__init__.py
Lib/encodings/_win_cp_codecs.py [new file with mode: 0644]
Lib/test/test_codecs.py
Misc/NEWS.d/next/Windows/2024-09-07-15-16-24.gh-issue-123803.J9VNQU.rst [new file with mode: 0644]