We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4bc279 + 281ddd0 commit 6392d0aCopy full SHA for 6392d0a
graalpython/com.oracle.graal.python.cext/src/unicodeobject.c
@@ -218,6 +218,11 @@ PyObject* PyUnicode_FromString(const char* o) {
218
return to_sulong(polyglot_from_string(o, SRC_CS));
219
}
220
221
+PyObject* PyUnicode_DecodeFSDefault(const char* o) {
222
+ // TODO: this implementation does not honor Py_FileSystemDefaultEncoding and Py_FileSystemDefaultEncodeErrors
223
+ return to_sulong(polyglot_from_string(o, "utf-8"));
224
+}
225
+
226
static PyObject* _PyUnicode_FromUTF8(const char* o) {
227
return to_sulong(polyglot_from_string(o, "utf-8"));
228
0 commit comments