summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2022-04-09 00:54:54 (GMT)
committerGitHub <noreply@github.com>2022-04-09 00:54:54 (GMT)
commit677320348728ce058fa3579017e985af74a236d4 (patch)
tree944297b71196964eab27a3336918c5a8f1e6a17d /Misc
parentcd29bd13ef1fe18970c5d43b66c545dd03117cb9 (diff)
downloadcpython-677320348728ce058fa3579017e985af74a236d4.zip
cpython-677320348728ce058fa3579017e985af74a236d4.tar.gz
cpython-677320348728ce058fa3579017e985af74a236d4.tar.bz2
bpo-47000: Add `locale.getencoding()` (GH-32068)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2022-04-06-11-54-53.bpo-47000.2nmAR1.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-04-06-11-54-53.bpo-47000.2nmAR1.rst b/Misc/NEWS.d/next/Library/2022-04-06-11-54-53.bpo-47000.2nmAR1.rst
new file mode 100644
index 0000000..0dd3d41
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-04-06-11-54-53.bpo-47000.2nmAR1.rst
@@ -0,0 +1,3 @@
+Add :func:`locale.getencoding` to get the current locale encoding.
+It is similar to ``locale.getpreferredencoding(False)`` but ignores the
+:ref:`Python UTF-8 Mode <utf8-mode>`.