GNOME Bugzilla – Bug 690001
tests: Add a test for importing a module which uses literal UTF-8
Last modified: 2012-12-11 00:09:05 UTC
It was claimed to be broken.
Created attachment 231196 [details] [review] tests: Add a test for importing a module which uses literal UTF-8
Attachment 231196 [details] pushed as 9ee364c - tests: Add a test for importing a module which uses literal UTF-8
(In reply to comment #0) > It was claimed to be broken. I has since been fixed in: commit c61483400bbd72866bddfca02bd465b073d9d426 Author: Giovanni Campagna <gcampagna@src.gnome.org> Date: Mon Oct 29 18:45:51 2012 +0100 Convert imported modules from UTF-8 to UTF-16 before executing If JS_CStringsAreUTF8 is false, the JSAPI assumes C strings are ISO-8859-1. Unfortunately, we rely on that setting for byte arrays, so just do the conversion ourselves, like we do in gjs_context_eval(). https://bugzilla.gnome.org/show_bug.cgi?id=687095