summaryrefslogtreecommitdiff
path: root/scripts/meson-python.sh
diff options
context:
space:
mode:
authorPavel Hrdina <phrdina@redhat.com>2020-06-30 20:18:18 +0200
committerPavel Hrdina <phrdina@redhat.com>2020-08-03 09:27:00 +0200
commitaf8611916a9b62fff841ddbdd575f95ba60f559a (patch)
tree8a753f656cb7b9d12b826ab9a1db3389bce03fc1 /scripts/meson-python.sh
parent16bdf27dc9b435d4016ea6204f61b69bde66a52c (diff)
downloadlibvirt-af8611916a9b62fff841ddbdd575f95ba60f559a.tar.gz
meson: add runutf8 env vars and meson-python.sh script
With meson we have to use both env vars and wrapper script to run python with correct LANG settings. run_command() and test() have 'env' attribute so we can use it, but custom_target() doesn't support that attribute. Environment variables cannot by configured using 'command' because meson checks if the first item in the list is executable so we have to use a wrapper. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Diffstat (limited to 'scripts/meson-python.sh')
-rwxr-xr-xscripts/meson-python.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/meson-python.sh b/scripts/meson-python.sh
new file mode 100755
index 0000000000..9ba670fc1a
--- /dev/null
+++ b/scripts/meson-python.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+LC_ALL= LANG=C LC_CTYPE=en_US.UTF-8 "$@"