diff options
author | rockon999 <rockon999@users.noreply.github.com> | 2018-03-26 20:31:18 -0400 |
---|---|---|
committer | rockon999 <rockon999@users.noreply.github.com> | 2018-04-10 13:13:09 -0400 |
commit | c068ba6d84be2261564e87047530663a39fdc841 (patch) | |
tree | e434561507539863e3174ac75855b7de25112dfb | |
parent | 89f1ab0f606fb05364fd2f97a0a1e1678134e464 (diff) | |
download | gjs-c068ba6d84be2261564e87047530663a39fdc841.tar.gz |
Add testing for ARGV encoding changes.
-rwxr-xr-x | installed-tests/scripts/testCommandLine.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/installed-tests/scripts/testCommandLine.sh b/installed-tests/scripts/testCommandLine.sh index 0a56f476..bdc57b77 100755 --- a/installed-tests/scripts/testCommandLine.sh +++ b/installed-tests/scripts/testCommandLine.sh @@ -99,6 +99,12 @@ else skip "System.exit() should still exit across an FFI boundary" "running under valgrind" fi +# ensure the encoding of argv is being properly handled +$gjs -c 'log(ARGV[0])' "Valentín" +report "Valentín should be outputed. ValentÃn is incorrect and if shown encoding is broken for argv" +$gjs -c 'log(ARGV[0])' "☭" +report "☭ should be outputed. If you see a unicode code point, encoding is broken for argv (and possibly imports)" + # gjs --help prints GJS help $gjs --help >/dev/null report "--help should succeed" |