summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.12.rst
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2022-06-23 03:09:57 (GMT)
committerGitHub <noreply@github.com>2022-06-23 03:09:57 (GMT)
commit9877f4c6249ac7f374dc48beaf21ea2bf3ee6996 (patch)
treeeffea480b2dc3d7f87af00f3b8ee97c49f9e6a50 /Doc/whatsnew/3.12.rst
parent576dd901170af30fc50b0a7f07a388b38fd724a9 (diff)
downloadcpython-9877f4c6249ac7f374dc48beaf21ea2bf3ee6996.zip
cpython-9877f4c6249ac7f374dc48beaf21ea2bf3ee6996.tar.gz
cpython-9877f4c6249ac7f374dc48beaf21ea2bf3ee6996.tar.bz2
gh-85308: argparse: Use filesystem encoding for arguments file (GH-93277)
Diffstat (limited to 'Doc/whatsnew/3.12.rst')
-rw-r--r--Doc/whatsnew/3.12.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 2439479..8dde135 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -233,6 +233,12 @@ Changes in the Python API
select from a larger range than ``randrange(10**25)``.
(Originally suggested by Serhiy Storchaka gh-86388.)
+* :class:`argparse.ArgumentParser` changed encoding and error handler
+ for reading arguments from file (e.g. ``fromfile_prefix_chars`` option)
+ from default text encoding (e.g. :func:`locale.getpreferredencoding(False) <locale.getpreferredencoding>`)
+ to :term:`filesystem encoding and error handler`.
+ Argument files should be encoded in UTF-8 instead of ANSI Codepage on Windows.
+
Build Changes
=============