diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-17 03:13:41 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-17 03:13:41 (GMT) |
commit | f2ea71fcc8986101512265b685d8d3dfdf7b7bdb (patch) | |
tree | 6b5e8c37d0b73993e542181584f0af7b87482220 /Modules/timemodule.c | |
parent | 9987d9351ca06dbad3b66ab6da52ab4621955f31 (diff) | |
download | cpython-f2ea71fcc8986101512265b685d8d3dfdf7b7bdb.zip cpython-f2ea71fcc8986101512265b685d8d3dfdf7b7bdb.tar.gz cpython-f2ea71fcc8986101512265b685d8d3dfdf7b7bdb.tar.bz2 |
Issue #13560: Add PyUnicode_EncodeLocale()
* Use PyUnicode_EncodeLocale() in time.strftime() if wcsftime() is not
available
* Document my last changes in Misc/NEWS
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r-- | Modules/timemodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index a46c4f1..ad1c54e 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -486,7 +486,7 @@ time_strftime(PyObject *self, PyObject *args) fmt = format; #else /* Convert the unicode string to an ascii one */ - format = PyUnicode_EncodeFSDefault(format_arg); + format = PyUnicode_EncodeLocale(format_arg, 1); if (format == NULL) return NULL; fmt = PyBytes_AS_STRING(format); |