Fix imp_cache_from_source(): Decode make_compiled_pathname() result from the
filesystem encoding instead of utf-8.
imp_cache_from_source() encodes the input path to filesystem encoding and this
path is passed to make_compiled_pathname().
diff --git a/Python/import.c b/Python/import.c
index 8575293..94363de 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -3483,7 +3483,7 @@
PyErr_Format(PyExc_SystemError, "path buffer too short");
return NULL;
}
- return PyUnicode_FromString(buf);
+ return PyUnicode_DecodeFSDefault(buf);
}
PyDoc_STRVAR(doc_cache_from_source,