[New-bugs-announce] [issue41143] distutils uses the locale encoding for the .pypirc file
Serhiy Storchaka
report at bugs.python.org
Sat Jun 27 11:14:09 EDT 2020
New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:
I have not found any mention about the encoding of .pypirc files. Currently distutils uses the locale encoding for reading and writing them. It makes them potentially nonportable if they contain non-ASCII data (not sure if it is possible) and depending on the user settings.
I think that if the only ASCII content is allowed, it would be safer to use explicit ASCII encoding. If non-ASCII content is allowed, then it may be worth always to use UTF-8. What do you think?
----------
components: Distutils
messages: 372467
nosy: alexis, dstufft, eric.araujo, lemburg, paul.moore, serhiy.storchaka, tarek
priority: normal
severity: normal
status: open
title: distutils uses the locale encoding for the .pypirc file
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41143>
_______________________________________
More information about the New-bugs-announce
mailing list