[issue29457] strftime('%x') does not use my locale

R. David Murray report at bugs.python.org
Mon Feb 6 08:47:53 EST 2017


R. David Murray added the comment:

Yes, it is the default behavior, because the default locale, as for most (almost all?) programming languages (not just Python), is the C locale, until you change it.  The reason for this is to get consistent behavior no matter what the locale is set to, unless you explicitly enable the local locale (or some other locale) in your program.

Whether it is worth adding a link is a separate question, but we really don't get this question often, unlike some other FAQs.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29457>
_______________________________________


More information about the Python-bugs-list mailing list