Jakub Kulik <[email protected]> added the comment:
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")'
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue43667>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com