Travis CI: set LC_* environment variables
Some of the docker containers set LC_ALL and LC_CTYPE to values that are
not specified on the system's locale as found via "locale -a". This
causes gpinitsystem and possibly initdb to fail. Set these environment
variables to the system's locale.
@@ -39,6 +39,11 @@ matrix:
fast_finish: true
include:
# OS and Compiler variations
+ #
+ # NOTE: Some of the docker containers set LC_ALL and LC_CTYPE to
+ # values that are not specified on the system's locale as found
+ # via "locale -a". This causes gpinitsystem and possibly initdb
+ # to fail. Set these environment variables to the system's locale.
# ----------------------------------------------------------------
#
# Ubuntu Bionic, gcc 8
@@ -48,6 +53,7 @@ matrix:
env:
- T=debug C=""
- OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
+ - LC_CTYPE="en_US.utf8" LC_ALL="en_US.utf8" # see NOTE above
addons:
apt:
sources:
@@ -61,6 +67,7 @@ matrix:
env:
- T=debug C=""
- OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7"
+ - LC_CTYPE="en_US.utf8" LC_ALL="en_US.utf8" # see NOTE above
addons:
apt:
sources:
@@ -90,6 +97,7 @@ matrix:
env:
- T=debug C="--without-zlib --without-libbz2 --without-zstd --without-quicklz"
- OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
+ - LC_CTYPE="en_US.utf8" LC_ALL="en_US.utf8" # see NOTE above
addons:
apt:
sources: *common_sources
@@ -103,6 +111,7 @@ matrix:
env:
- tests=unit T=debug C="--disable-orca"
- OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
+ - LC_CTYPE="en_US.utf8" LC_ALL="en_US.utf8" # see NOTE above
addons:
apt:
sources: *common_sources
@@ -115,6 +124,7 @@ matrix:
env:
- tests=installcheck T=debug C="--disable-orca"
- OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
+ - LC_CTYPE="en_US.utf8" LC_ALL="en_US.utf8" # see NOTE above
addons:
apt:
sources: *common_sources
