summaryrefslogtreecommitdiffstats
path: root/Doc/glossary.rst
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 /Doc/glossary.rst
parentcd29bd13ef1fe18970c5d43b66c545dd03117cb9 (diff)
downloadcpython-677320348728ce058fa3579017e985af74a236d4.zip
cpython-677320348728ce058fa3579017e985af74a236d4.tar.gz
cpython-677320348728ce058fa3579017e985af74a236d4.tar.bz2
bpo-47000: Add `locale.getencoding()` (GH-32068)
Diffstat (limited to 'Doc/glossary.rst')
-rw-r--r--Doc/glossary.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 258a06f..75db433 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -706,15 +706,15 @@ Glossary
locale encoding
On Unix, it is the encoding of the LC_CTYPE locale. It can be set with
- ``locale.setlocale(locale.LC_CTYPE, new_locale)``.
+ :func:`locale.setlocale(locale.LC_CTYPE, new_locale) <locale.setlocale>`.
- On Windows, it is the ANSI code page (ex: ``cp1252``).
+ On Windows, it is the ANSI code page (ex: ``"cp1252"``).
- ``locale.getpreferredencoding(False)`` can be used to get the locale
- encoding.
+ On Android and VxWorks, Python uses ``"utf-8"`` as the locale encoding.
- Python uses the :term:`filesystem encoding and error handler` to convert
- between Unicode filenames and bytes filenames.
+ ``locale.getencoding()`` can be used to get the locale encoding.
+
+ See also the :term:`filesystem encoding and error handler`.
list
A built-in Python :term:`sequence`. Despite its name it is more akin