diff options
author | Arjun Shankar <arjun@redhat.com> | 2020-09-24 14:58:36 +0200 |
---|---|---|
committer | Arjun Shankar <arjun@redhat.com> | 2020-09-24 14:58:36 +0200 |
commit | b3b0b6916a2d4a966bbd852964054d475836c9eb (patch) | |
tree | fae34c693c138bccff995aa4493fd1c31a1b810b /Makefile | |
parent | 03e26098b174abec1158a9ed9352a45a3176ef7b (diff) | |
download | glibc-b3b0b6916a2d4a966bbd852964054d475836c9eb.tar glibc-b3b0b6916a2d4a966bbd852964054d475836c9eb.tar.gz glibc-b3b0b6916a2d4a966bbd852964054d475836c9eb.tar.bz2 glibc-b3b0b6916a2d4a966bbd852964054d475836c9eb.zip |
Set locale related environment variables in debugglibc.sh
Tests and binaries that use locale related functions need to run in the
correct locale environment when being debugged via debugglibc.sh. This
commit sets up the environment, specifically: GCONV_PATH, LOCPATH, and
LC_ALL for such tests and binaries when they are being debugged outside
of a test container.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -305,6 +305,15 @@ then exit 1 fi +# Container tests needing locale data should install them in-container. +# Other tests/binaries need to use locale data from the build tree. +if [ "$$CONTAINER" = false ] +then + ENVVARS="GCONV_PATH=$${BUILD_DIR}/iconvdata $$ENVVARS" + ENVVARS="LOCPATH=$${BUILD_DIR}/localedata $$ENVVARS" + ENVVARS="LC_ALL=C $$ENVVARS" +fi + # Expand environment setup command if [ -v ENVVARS ] then |