Author kulikjak
Recipients ezio.melotti, kulikjak, vstinner
Date 2021-03-30.10:12:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617099171.12.0.60018679663.issue43667@roundup.psfhosted.org>
In-reply-to
Content
I forgot to mention: this affects Oracle Solaris. I tested this on SmartOS, and I cannot reproduce it there as it seems that they are using Unicode representation for all locales. Based on the documentation, this might also affect other systems as well (e.g. HP UIX specifically says: 'These values may not be compatible with values obtained by specifying other locales that are supported'), but it's hard to tell without testing that.

This one liner breaks with ValueError: character U+30000069 is not in range [U+0000; U+10ffff] if the issue is present:
python3.7 -c 'import datetime; import locale; locale.setlocale(locale.LC_ALL,"es_ES.ISO8859-1"); datetime.date(2001, 1, 3).strftime("%a")'
History
Date User Action Args
2021-03-30 10:12:51kulikjaksetrecipients: + kulikjak, vstinner, ezio.melotti
2021-03-30 10:12:51kulikjaksetmessageid: <1617099171.12.0.60018679663.issue43667@roundup.psfhosted.org>
2021-03-30 10:12:51kulikjaklinkissue43667 messages
2021-03-30 10:12:50kulikjakcreate