summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-08-28 15:27:36 (GMT)
committerGitHub <noreply@github.com>2018-08-28 15:27:36 (GMT)
commitd500e5307aec9c5d535f66d567fadb9c587a9a36 (patch)
tree37f95130926a65be9419683aca896b3dcfcfceee /Misc
parent5cb258950ce9b69b1f65646431c464c0c17b1510 (diff)
downloadcpython-d500e5307aec9c5d535f66d567fadb9c587a9a36.zip
cpython-d500e5307aec9c5d535f66d567fadb9c587a9a36.tar.gz
cpython-d500e5307aec9c5d535f66d567fadb9c587a9a36.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2018-08-28-10-49-55.bpo-34403.4Q3LzP.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-08-28-10-49-55.bpo-34403.4Q3LzP.rst b/Misc/NEWS.d/next/Core and Builtins/2018-08-28-10-49-55.bpo-34403.4Q3LzP.rst
new file mode 100644
index 0000000..d70be82
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2018-08-28-10-49-55.bpo-34403.4Q3LzP.rst
@@ -0,0 +1,3 @@
+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).