]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
CI: Set language environment variables to safe values
authorSimon McVittie <smcv@collabora.com>
Fri, 1 Dec 2023 19:10:50 +0000 (19:10 +0000)
committerSimon McVittie <smcv@collabora.com>
Fri, 1 Dec 2023 19:10:56 +0000 (19:10 +0000)
Recent versions of glibc support C.UTF-8 natively, and both Debian and
openSUSE (which we use for our CI) have been patching it into our glibc
versions for several years before that.

Helps: https://gitlab.freedesktop.org/dbus/dbus/-/issues/488
Signed-off-by: Simon McVittie <smcv@collabora.com>
tools/ci-build.sh

index b95cfa86eb3167e999ff8f9ab64b91aea886559b..ea6b35a26ebbae894e4fb2bcb58ad4b0045a6546 100755 (executable)
@@ -29,6 +29,12 @@ set -x
 
 NULL=
 
+if [ "$(uname -s || true)" = Linux ]; then
+    export LANG=C.UTF-8
+    export LANGUAGE=C.UTF-8
+    export LC_ALL=C.UTF-8
+fi
+
 ##
 ## initialize support to run cross compiled executables
 ##