[gjs: 2/5] Add testing for ARGV encoding changes.
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 2/5] Add testing for ARGV encoding changes.
- Date: Tue, 17 Apr 2018 05:34:42 +0000 (UTC)
commit c068ba6d84be2261564e87047530663a39fdc841
Author: rockon999 <rockon999 users noreply github com>
Date: Mon Mar 26 20:31:18 2018 -0400
Add testing for ARGV encoding changes.
installed-tests/scripts/testCommandLine.sh | 6 ++++++
1 file changed, 6 insertions(+)
---
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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]