◐ Shell
clean mode source ↗

bpo-34523: Fix C locale coercion on FreeBSD CURRENT by vstinner · Pull Request #10672 · python/cpython

bpo-34523, bpo-35290: C locale coercion now resets the Python
internal "force ASCII" mode. This change fix the filesystem encoding
on FreeBSD CURRENT which has a new "C.UTF-8" locale.

Add _Py_ResetForceASCII(). _Py_SetLocaleFromEnv() now calls
_Py_ResetForceASCII().
On Windows, the function does nothing.

vstinner added a commit that referenced this pull request

Nov 23, 2018
)

bpo-34523, bpo-35290: C locale coercion now resets the Python
internal "force ASCII" mode. This change fix the filesystem encoding
on FreeBSD CURRENT, which has a new "C.UTF-8" locale, when
the UTF-8 mode is disabled.

Add _Py_ResetForceASCII(): _Py_SetLocaleFromEnv() now calls it.

(cherry picked from commit 353933e)