summaryrefslogtreecommitdiffstats
path: root/Doc/using
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/using')
-rw-r--r--Doc/using/windows.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/using/windows.rst b/Doc/using/windows.rst
index 83eee28..88dcb00 100644
--- a/Doc/using/windows.rst
+++ b/Doc/using/windows.rst
@@ -618,7 +618,7 @@ UTF-8 mode
Windows still uses legacy encodings for the system encoding (the ANSI Code
Page). Python uses it for the default encoding of text files (e.g.
-:func:`locale.getpreferredencoding`).
+:func:`locale.getencoding`).
This may cause issues because UTF-8 is widely used on the internet
and most Unix systems, including WSL (Windows Subsystem for Linux).