]> granicus.if.org Git - python/commit
bpo-34403: On HP-UX, force ASCII for C locale (GH-8969)
authorVictor Stinner <vstinner@redhat.com>
Tue, 28 Aug 2018 15:27:36 +0000 (17:27 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Aug 2018 15:27:36 +0000 (17:27 +0200)
commitd500e5307aec9c5d535f66d567fadb9c587a9a36
tree37f95130926a65be9419683aca896b3dcfcfceee
parent5cb258950ce9b69b1f65646431c464c0c17b1510
bpo-34403: On HP-UX, force ASCII for C locale (GH-8969)

On HP-UX with C or POSIX locale, sys.getfilesystemencoding() now returns
"ascii" instead of "roman8" (when the UTF-8 Mode is disabled and the C locale
is not coerced).

nl_langinfo(CODESET) announces "roman8" whereas it uses the Latin1
encoding in practice.
Include/fileutils.h
Misc/NEWS.d/next/Core and Builtins/2018-08-28-10-49-55.bpo-34403.4Q3LzP.rst [new file with mode: 0644]
Python/coreconfig.c
Python/fileutils.c
Python/pylifecycle.c