]> granicus.if.org Git - python/commit
bpo-29240: PyUnicode_DecodeLocale() uses UTF-8 on Android (#5272)
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 22 Jan 2018 18:07:32 +0000 (19:07 +0100)
committerGitHub <noreply@github.com>
Mon, 22 Jan 2018 18:07:32 +0000 (19:07 +0100)
commit9089a265918754d95e105a7c4c409ac9352c87bb
tree1f171191126bbe95f5e36de0a128b29bd7ed66b4
parent13ff24582c99dfb439b1af7295b401415e7eb05b
bpo-29240: PyUnicode_DecodeLocale() uses UTF-8 on Android (#5272)

PyUnicode_DecodeLocaleAndSize(), PyUnicode_DecodeLocale() and
PyUnicode_EncodeLocale() now use always use the UTF-8 encoding on
Android, instead of the current locale encoding.

On Android API 19, mbstowcs() and wcstombs() are broken and cannot be
used.
Doc/c-api/unicode.rst
Python/fileutils.c