]> granicus.if.org Git - python/commit
bpo-34523: Fix C locale coercion on FreeBSD CURRENT (GH-10672)
authorVictor Stinner <vstinner@redhat.com>
Fri, 23 Nov 2018 12:08:26 +0000 (13:08 +0100)
committerGitHub <noreply@github.com>
Fri, 23 Nov 2018 12:08:26 +0000 (13:08 +0100)
commit353933e712b6c7f7ba9a9a50bd5bd472db7c35d0
treeb91db22bcb76a9459a0495c96f21524368af401c
parente89607c0fc8d6edbf19c06ba42ff0f00e6c4273f
bpo-34523: Fix C locale coercion on FreeBSD CURRENT (GH-10672)

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.
Include/internal/pycore_fileutils.h
Python/fileutils.c
Python/pylifecycle.c