On 10/15/18 4:20 PM, Tom de Vries wrote: > Hi, > > Using a simple scheme hello world: > ... > $ cat hello.scm > (display "hello world") > (newline) > ... > we're able to reproduce the problem using the guile binary: > .... > $ LC_CTYPE=ja_JP.sjis /home/vries/guile/2.2/install/bin/guile -s hello.scm > Segmentation fault (core dumped) > ... > > [ Note: When using 2.0, we need to set GUILE_INSTALL_LOCALE=1 in the > environment, otherwise the 'LC_CTYPE=ja_JP.sjis' setting has no effect. ] >
I managed to create a testcase for this, patch attached. Tested on master for x86_64, where it fails. Thanks, - Tom
Add standalone test test-ja_JP.sjis Test for <https://bugs.gnu.org/33044>. * test-suite/standalone/test-ja_JP.sjis: New test. * test-suite/standalone/Makefile.am: Add test-ja_JP.sjis. --- test-suite/standalone/Makefile.am | 4 ++++ test-suite/standalone/test-ja_JP.sjis | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/test-suite/standalone/Makefile.am b/test-suite/standalone/Makefile.am index 2aba708da..c5ce4bccb 100644 --- a/test-suite/standalone/Makefile.am +++ b/test-suite/standalone/Makefile.am @@ -183,6 +183,10 @@ TESTS += test-mb-regexp check_SCRIPTS += test-use-srfi TESTS += test-use-srfi +# test-ja_JP.sjis +check_SCRIPTS += test-ja_JP.sjis +TESTS += test-ja_JP.sjis + # test-scm-c-read test_scm_c_read_SOURCES = test-scm-c-read.c test_scm_c_read_CFLAGS = ${test_cflags} diff --git a/test-suite/standalone/test-ja_JP.sjis b/test-suite/standalone/test-ja_JP.sjis new file mode 100755 index 000000000..4b7ba0d88 --- /dev/null +++ b/test-suite/standalone/test-ja_JP.sjis @@ -0,0 +1,8 @@ +#!/bin/sh +# Test whether guile can run initialization code using ja_JP.sjis locale +# (bug #33044). +unset LC_ALL +export LC_CTYPE +LC_CTYPE=ja_JP.sjis +exec guile -q -s "$0" "$@" +!#