]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34523, bpo-35322: Fix unicode_encode_locale() (GH-10759)
authorVictor Stinner <vstinner@redhat.com>
Wed, 28 Nov 2018 09:26:20 +0000 (10:26 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Nov 2018 09:26:20 +0000 (10:26 +0100)
commitbde9d6bbb46ca59bcee5d5060adaa33c3ffee3a6
treeef525570f785225ab3da54b867b2ea4cb137fb40
parenta22df4896f6b83c8741203118790ae281716bca5
bpo-34523, bpo-35322: Fix unicode_encode_locale() (GH-10759)

Fix memory leak in PyUnicode_EncodeLocale() and
PyUnicode_EncodeFSDefault() on error handling.

Changes:

* Fix unicode_encode_locale() error handling
* Fix test_codecs.LocaleCodecTest
Lib/test/test_codecs.py
Misc/NEWS.d/next/C API/2018-11-28-03-20-36.bpo-35322.Qcqsag.rst [new file with mode: 0644]
Objects/unicodeobject.c