]> granicus.if.org Git - python/commit
bpo-29240: Ignore UTF-8 Mode in time module (#5148)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 11 Jan 2018 09:37:59 +0000 (10:37 +0100)
committerGitHub <noreply@github.com>
Thu, 11 Jan 2018 09:37:59 +0000 (10:37 +0100)
commitcb3ae5588bd7733e76dc09277bb7626652d9bb64
tree137a100f35284a1327a8ec38052433aa21e13281
parent3948207c610e931831828d33aaef258185df31db
bpo-29240: Ignore UTF-8 Mode in time module (#5148)

time.strftime() must use the current LC_CTYPE encoding, not UTF-8
if the UTF-8 mode is enabled.

Add _PyUnicode_DecodeCurrentLocale() function.
Include/unicodeobject.h
Modules/readline.c
Modules/timemodule.c
Objects/unicodeobject.c