Issue #13560: Locale codec functions use the classic "errors" parameter,
instead of surrogateescape
So it would be possible to support more error handlers later.
diff --git a/Python/errors.c b/Python/errors.c
index 122e444..31fa9e2 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -355,7 +355,7 @@
#ifndef MS_WINDOWS
if (i != 0) {
char *s = strerror(i);
- message = PyUnicode_DecodeLocale(s, 1);
+ message = PyUnicode_DecodeLocale(s, "surrogateescape");
}
else {
/* Sometimes errno didn't get set */