]> granicus.if.org Git - python/commit
bpo-32030: Add _Py_EncodeUTF8_surrogateescape() (#4960)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 21 Dec 2017 14:45:16 +0000 (15:45 +0100)
committerGitHub <noreply@github.com>
Thu, 21 Dec 2017 14:45:16 +0000 (15:45 +0100)
commite47e698da6bd982da277960c14afa9d9939e3155
treedd6a4bee16d8c66533f6a6c3f71f24f39caafd35
parentfbd605151fcf2899b14575f4ddb9ce3c55e684ab
bpo-32030: Add _Py_EncodeUTF8_surrogateescape() (#4960)

Py_EncodeLocale() now uses _Py_EncodeUTF8_surrogateescape(), instead
of using temporary unicode and bytes objects. So Py_EncodeLocale()
doesn't use the Python C API anymore.
Objects/unicodeobject.c
Python/fileutils.c