classification
Title: distutils uses the locale encoding for the .pypirc file
Type: Stage:
Components: Distutils Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: alexis, dstufft, eric.araujo, lemburg, paul.moore, serhiy.storchaka, tarek
Priority: normal Keywords:

Created on 2020-06-27 15:14 by serhiy.storchaka, last changed 2020-06-27 15:14 by serhiy.storchaka.

Messages (1)
msg372467 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2020-06-27 15:14
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?
History
Date User Action Args
2020-06-27 15:14:43serhiy.storchakalinkissue41063 dependencies
2020-06-27 15:14:09serhiy.storchakacreate