classification
Title: pdb uses the locale encoding for .pdbrc
Type: Stage: patch review
Components: Library (Lib) Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: eamanu, methane, serhiy.storchaka, thatiparthy
Priority: normal Keywords: patch

Created on 2020-06-27 07:23 by serhiy.storchaka, last changed 2020-07-02 02:23 by eamanu.

Pull Requests
URL Status Linked Edit
PR 21263 open thatiparthy, 2020-07-01 16:43
Messages (2)
msg372454 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2020-06-27 07:23
pdb uses the locale encoding when read the .pdbrc file. It means that the current locale of the debugged program affects it. It also makes .pdbrc not portable between different platforms.

It is usually not an issue, because the .pdbrc file usually contains ASCII-only data. But maybe always use UTF-8 for .pdbrc files?
msg372459 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2020-06-27 09:09
+1 for UTF-8 always.
History
Date User Action Args
2020-07-02 02:23:30eamanusetnosy: + eamanu
2020-07-01 16:43:49thatiparthysetkeywords: + patch
nosy: + thatiparthy

pull_requests: + pull_request20411
stage: patch review
2020-06-27 09:09:20methanesetnosy: + methane
messages: + msg372459
2020-06-27 08:32:28serhiy.storchakalinkissue41063 dependencies
2020-06-27 07:23:15serhiy.storchakacreate