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

2017-02-05 Thread Hugo Osvaldo Barrera
Hugo Osvaldo Barrera added the comment: The problem is that the datetime/strftime documentation describes "%c" as: Locale’s appropriate date and time representation. However, this is not really accurate (this is not the *default* behaviour), that's why I was mentioning the cla

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

2017-02-05 Thread Hugo Osvaldo Barrera
Hugo Osvaldo Barrera added the comment: It would seem that locale.setlocale(locale.LC_TIME, "") fixes the issue. However, there seems to be no mention on this on the relevant documentation page[1], which is actually the source of my confusion. As a "fix" to this issue

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

2017-02-05 Thread Hugo Osvaldo Barrera
New submission from Hugo Osvaldo Barrera: As the the posix spec for strftime: %c The preferred date and time representation for the current locale. %x The preferred date representation for the current locale without the time. However, python doesn't seem to respect this: $ python3.5 -c