testCommandLine's Unicode tests failing on Alpine Linux
System information
What is your operating system and version? Alpine Linux Edge (musl) What is your version of GJS? 1.58.3
Bug information
Steps to reproduce
- compile gjs on Alpine Linux, run tests
log:
(lt-gjs-console:16071): Gjs-ERROR **: 18:57:20.151: option parsing failed: Invalid byte sequence in conversion input
Trace/breakpoint trap (core dumped)
not ok 6 - Basic unicode encoding (accents, etc) should be functioning properly for ARGV and imports.
FAIL: installed-tests/scripts/testCommandLine.sh 6 - Basic unicode encoding (accents, etc) should be functioning properly for ARGV and imports.
not ok 7 - Unicode encoding for symbols should be functioning properly for ARGV and imports.
FAIL: installed-tests/scripts/testCommandLine.sh 7 - Unicode encoding for symbols should be functioning properly for ARGV and imports.
I'm not quite sure why this fails - running gjs-console -c 'imports.system.exit((ARGV[0] !== "☭") ? 1 : 0)' "☭"
after installing gjs it on system appears to work:
bash-5.0$ gjs-console -c 'imports.system.exit((ARGV[0] !== "☭") ? 1 : 0)' "☭"
bash-5.0$ echo $?
0
Edited by Philip Chimento