Message309964
I'm not sure that locale.bindtextdomain() uses the right encoding neither. I propose the following fix:
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index 324b694b83..1de17d3620 100644
--- a/Modules/_localemodule.c
+++ b/Modules/_localemodule.c
@@ -555,7 +555,7 @@ PyIntl_bindtextdomain(PyObject* self,PyObject*args)
PyErr_SetFromErrno(PyExc_OSError);
return NULL;
}
- result = PyUnicode_DecodeLocale(current_dirname, NULL);
+ result = PyUnicode_DecodeFSDefault(current_dirname);
Py_XDECREF(dirname_bytes);
return result;
} |
|
Date |
User |
Action |
Args |
2018-01-15 11:21:24 | vstinner | set | recipients:
+ vstinner, ezio.melotti |
2018-01-15 11:21:24 | vstinner | set | messageid: <1516015284.57.0.467229070634.issue32555@psf.upfronthosting.co.za> |
2018-01-15 11:21:24 | vstinner | link | issue32555 messages |
2018-01-15 11:21:24 | vstinner | create | |
|