Permalink
Browse files

Fix some locale-related issues causing travis-ci tests to fail.

  • Loading branch information...
shawnw committed Jul 26, 2018
1 parent 4101e83 commit 7553bdc34001eec915c7c0e43ed3796d03249d26
Showing with 10 additions and 2 deletions.
  1. +1 −1 .travis.yml
  2. +9 −1 test/alltests.sh.in
@@ -1,7 +1,7 @@
language: c
compiler: gcc
before_install:
- locale
- sudo localedef -f ISO-8859-1 -i en_US en_US.ISO88591
before_script:
- ./configure
- yes "" | make update
@@ -1,7 +1,15 @@
#!/bin/sh
CTYPE=$(locale -a | grep en_US.iso8859 | head -1)
if [ -z "${CTYPE}" ]; then
echo "Unable to find an en_US.iso8859 locale. Some tests will fail."
CTYPE=C
fi
export LC_COLLATE=C
export LC_CTYPE=en_US.iso88591
export LC_CTYPE=${CTYPE}
exec @PERL@ runtest.pl $@ test*.pl

0 comments on commit 7553bdc

Please sign in to comment.