From f485b2809061e68e3e2b1e7243060a744a2b1cf8 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Wed, 31 Dec 2014 08:53:39 -0800 Subject: Test suite: Make sure we have a usable locale before we run iconv. Change-Id: Ib1f3143dc48af4c556b9bcdfafbb477fd59b6359 Reviewed-on: https://code.wireshark.org/review/6181 Reviewed-by: Gerald Combs --- test/suite-clopts.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/suite-clopts.sh') diff --git a/test/suite-clopts.sh b/test/suite-clopts.sh index eedffa4f93..71b88800a8 100755 --- a/test/suite-clopts.sh +++ b/test/suite-clopts.sh @@ -296,8 +296,13 @@ test_dump_glossary_utf8() { return fi + SAVE_LANG=$LANG + LANG=en_US.UTF-8 + export LANG $TSHARK -G $1 | iconv -f UTF-8 > /dev/null 2> ./testout.txt RETURNVALUE=$? + LANG=$SAVE_LANG + export LANG if [ ! $RETURNVALUE -eq $EXIT_OK ]; then if [ -s ./testout.txt ]; then test_step_output_print ./testout.txt -- cgit v1.2.1