diff options
author | Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com> | 2021-07-08 07:16:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-08 07:16:08 (GMT) |
commit | 58248d94379b202ccce3e45b1d1830ca47683273 (patch) | |
tree | e96253619faf7e782cff59a7b1e9b9173ef22782 /Doc | |
parent | fed2fc4443235fa9669b73817827fd6da88e3417 (diff) | |
download | cpython-58248d94379b202ccce3e45b1d1830ca47683273.zip cpython-58248d94379b202ccce3e45b1d1830ca47683273.tar.gz cpython-58248d94379b202ccce3e45b1d1830ca47683273.tar.bz2 |
bpo-41137: Use utf-8 encoding while reading .pdbrc files (GH-21263)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/pdb.rst | 12 | ||||
-rw-r--r-- | Doc/whatsnew/3.11.rst | 3 |
2 files changed, 11 insertions, 4 deletions
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst index ed1e971..6d1dba1 100644 --- a/Doc/library/pdb.rst +++ b/Doc/library/pdb.rst @@ -241,10 +241,14 @@ middle of a quoted string. triple: debugger; configuration; file If a file :file:`.pdbrc` exists in the user's home directory or in the current -directory, it is read in and executed as if it had been typed at the debugger -prompt. This is particularly useful for aliases. If both files exist, the one -in the home directory is read first and aliases defined there can be overridden -by the local file. +directory, it is read with ``'utf-8'`` encoding and executed as if it had been +typed at the debugger prompt. This is particularly useful for aliases. If both +files exist, the one in the home directory is read first and aliases defined there +can be overridden by the local file. + +.. versionchanged:: 3.11 + :file:`.pdbrc` is now read with ``'utf-8'`` encoding. Previously, it was read + with the system locale encoding. .. versionchanged:: 3.2 :file:`.pdbrc` can now contain commands that continue debugging, such as diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 5b51273..5b58ef6 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -151,6 +151,9 @@ Optimizations (Contributed by Ken Jin and Mark Shannon in :issue:`26110`, based on ideas implemented in PyPy.) +* :file:`.pdbrc` is now read with ``'utf-8'`` encoding. + + CPython bytecode changes ======================== |