diff options
author | Inada Naoki <songofacandy@gmail.com> | 2022-06-23 03:09:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-23 03:09:57 (GMT) |
commit | 9877f4c6249ac7f374dc48beaf21ea2bf3ee6996 (patch) | |
tree | effea480b2dc3d7f87af00f3b8ee97c49f9e6a50 /Doc/whatsnew/3.12.rst | |
parent | 576dd901170af30fc50b0a7f07a388b38fd724a9 (diff) | |
download | cpython-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.rst | 6 |
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 ============= |