GNOME Bugzilla – Bug 765465
test_utf8_inout fails with gobject-introspection-1.48.0
Last modified: 2016-07-14 00:18:38 UTC
When build gjs with gobject-introspection-1.48.0, the testUtf8 in testEverythingBasic.js fails with: Gjs-WARNING **: JS ERROR: Error: Failed to convert UTF-8 string to JS string: Invalid byte sequence in conversion input I find it passing a dangling pointer as utf8_string to the gjs_string_from_utf8 function. Build gjs with gobject-introspection-1.46.0 doesn't have this issue. (glib version is 2.48.0 in both cases) I also use python3 with pygobject to call test_utf8_inout in the Regress.typelib, and it work fine.
I can confirm this issue on an up-to-date Debian unstable system. I'm getting Gjs-Message: JS LOG: running test testUtf8 Gjs-Message: JS LOG: Expected nonconst ♥ utf8 (string) but was (string)
This is from https://bugzilla.gnome.org/show_bug.cgi?id=736517
I believe this is the same failure as another bug that has more discussion as to what its cause is. *** This bug has been marked as a duplicate of bug 761068 ***