Author serhiy.storchaka
Recipients serhiy.storchaka, vstinner
Date 2016-09-02.11:26:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> By the way, I'm surprised that the special encoding "unicode" relies on the *current* locale encoding when the XML declaration is requested. Why not alway susing UTF-8 for *unicode* instead of the locale encoding?

Because it is usually outputs to sys.stdout or a file opened with default encoding. Agreed, the current locale encoding is not the best choice. It would be better to look at the encoding attribute of the file and fallback to utf-8 or ascii.
Date User Action Args
2016-09-02 11:26:19serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner
2016-09-02 11:26:18serhiy.storchakasetmessageid: <>
2016-09-02 11:26:18serhiy.storchakalinkissue27940 messages
2016-09-02 11:26:18serhiy.storchakacreate