]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36775: Add _Py_FORCE_UTF8_FS_ENCODING macro (GH-13056)
authorVictor Stinner <vstinner@redhat.com>
Thu, 2 May 2019 15:28:57 +0000 (11:28 -0400)
committerGitHub <noreply@github.com>
Thu, 2 May 2019 15:28:57 +0000 (11:28 -0400)
commite251095a3f4778102f554cecffcfd837f4d1db6c
tree050ebaae241e689f989f42cf3d8bbe23d6f9258b
parentc4e78b116f9a4299f3b3bfbbd18ef49782bb1143
bpo-36775: Add _Py_FORCE_UTF8_FS_ENCODING macro (GH-13056)

Add _Py_FORCE_UTF8_LOCALE and _Py_FORCE_UTF8_FS_ENCODING macros to
avoid factorize "#if defined(__ANDROID__) || defined(__VXWORKS__)"
and "#if defined(__APPLE__)".

Cleanup also config_init_fs_encoding().
Include/pyport.h
Objects/unicodeobject.c
Python/coreconfig.c
Python/fileutils.c
Python/pylifecycle.c