[issue38220] Wrong values for %b and %B in ca_ES and ca_AD locales
Joan
report at bugs.python.org
Wed Sep 18 17:09:52 EDT 2019
Joan <aseques at gmail.com> added the comment:
Issue can be reproduced with this snippet:
---
import locale
from datetime import datetime
locale.setlocale(locale.LC_ALL, 'ca_AD.utf8')
locale.setlocale(locale.LC_ALL, 'ca_ES.utf8')
#locale.setlocale(locale.LC_ALL, 'es_ES.utf8')
now = datetime.now() # current date and time
date_time = now.strftime("|%b|%B|")
print("date and time:",date_time)
---
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38220>
_______________________________________
More information about the Python-bugs-list
mailing list