diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-17 04:47:23 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-17 04:47:23 (GMT) |
commit | 1b57967b96daeb505e9d2dbe3cd347625dcb0739 (patch) | |
tree | 36cba7b2875396dcaf106fff1fbd862575762744 /Modules/main.c | |
parent | ab595943268eebef43e71e2b79e58382c28bca70 (diff) | |
download | cpython-1b57967b96daeb505e9d2dbe3cd347625dcb0739.zip cpython-1b57967b96daeb505e9d2dbe3cd347625dcb0739.tar.gz cpython-1b57967b96daeb505e9d2dbe3cd347625dcb0739.tar.bz2 |
Issue #13560: Locale codec functions use the classic "errors" parameter,
instead of surrogateescape
So it would be possible to support more error handlers later.
Diffstat (limited to 'Modules/main.c')
-rw-r--r-- | Modules/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/main.c b/Modules/main.c index 4899378..d8c5172 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -495,7 +495,7 @@ Py_Main(int argc, wchar_t **argv) /* Use utf-8 on Mac OS X */ unicode = PyUnicode_FromString(p); #else - unicode = PyUnicode_DecodeLocale(p, 1); + unicode = PyUnicode_DecodeLocale(p, "surrogateescape"); #endif if (unicode == NULL) { /* ignore errors */ |