Skip to content

Commit 38b5f94

Browse files
committed
Fix '_PyErr_BadInternalCall'.
1 parent e329f82 commit 38b5f94

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python.cext/src

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python.cext/src/errors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include "capi.h"
4040

4141
void _PyErr_BadInternalCall(const char *filename, int lineno) {
42-
truffle_invoke(PY_TRUFFLE_CEXT, "_PyErr_BadInternalCall", truffle_read_string(filename), lineno);
42+
polyglot_invoke(PY_TRUFFLE_CEXT, "_PyErr_BadInternalCall", polyglot_from_string(filename, "utf-8"), lineno, Py_NoValue);
4343
}
4444

4545
#undef PyErr_BadInternalCall

0 commit comments

Comments
 (0)