Author serhiy.storchaka
Recipients rhettinger, serhiy.storchaka
Date 2020-06-27.07:13:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593242027.84.0.221105259078.issue41136@roundup.psfhosted.org>
In-reply-to
Content
The fromfile_prefix_chars option allows you to read arguments from file. But open() without explicit encoding is used for this. Therefore the result is depending on the current locale or the PYTHONIOENCODING environment variable. On Linux this is rare a problem, because UTF-8 is a common locale encoding, but on Windows the locale encoding is usually 8-bit and may even be not able to encode all file names.

I think we need a new option to specify the encoding for files from which arguments are read.
History
Date User Action Args
2020-06-27 07:13:47serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger
2020-06-27 07:13:47serhiy.storchakasetmessageid: <1593242027.84.0.221105259078.issue41136@roundup.psfhosted.org>
2020-06-27 07:13:47serhiy.storchakalinkissue41136 messages
2020-06-27 07:13:47serhiy.storchakacreate