diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-17 03:45:09 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-17 03:45:09 (GMT) |
commit | 1f33f2b0c381337d5991c227652d65eadd168209 (patch) | |
tree | 4f2303936f90a15a9d7a132a3d5f57c238eba38d /Modules/posixmodule.c | |
parent | f2ea71fcc8986101512265b685d8d3dfdf7b7bdb (diff) | |
download | cpython-1f33f2b0c381337d5991c227652d65eadd168209.zip cpython-1f33f2b0c381337d5991c227652d65eadd168209.tar.gz cpython-1f33f2b0c381337d5991c227652d65eadd168209.tar.bz2 |
Issue #13560: os.strerror() now uses the current locale encoding instead of UTF-8
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 8ba2975..6b832c0 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -7891,7 +7891,7 @@ posix_strerror(PyObject *self, PyObject *args) "strerror() argument out of range"); return NULL; } - return PyUnicode_FromString(message); + return PyUnicode_DecodeLocale(message, 1); } |