From 2b367ccdf66a435c205606a1ce71a003c3e0788d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 29 Jan 2024 09:39:23 +0100 Subject: UTF-8 --- .../disk-partitions/data/opt/openslx/scripts/systemd-setup_partitions | 2 +- .../hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats | 4 ++-- core/modules/run-virt/fwtool/main.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'core') diff --git a/core/modules/disk-partitions/data/opt/openslx/scripts/systemd-setup_partitions b/core/modules/disk-partitions/data/opt/openslx/scripts/systemd-setup_partitions index 571b5899..c85f5079 100755 --- a/core/modules/disk-partitions/data/opt/openslx/scripts/systemd-setup_partitions +++ b/core/modules/disk-partitions/data/opt/openslx/scripts/systemd-setup_partitions @@ -134,7 +134,7 @@ mount_temp () { chmod a+rwxt /tmp # Move stuff from working directory, which is old /tmp, to new /tmp just mounted mv ./* ./.[!.]* ./..?* /tmp/ 2> /dev/null - local OLD=$(LANG=C ls -alh | grep -v -E ' \.\.?$' | grep -v '^total') + local OLD=$(LANG=C.UTF-8 ls -alh | grep -v -E ' \.\.?$' | grep -v '^total') [ -n "$OLD" ] && echo -- "Leftovers:" && echo -- "$OLD" cd "$PRE" || true } diff --git a/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats b/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats index 252c80c7..7feed991 100755 --- a/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats +++ b/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats @@ -5,8 +5,8 @@ # This script gathers information about the hardware and configuration and reports it back to the server . /opt/openslx/config -export LANG=C -export LC_ALL=C +export LANG=C.UTF-8 +export LC_ALL=C.UTF-8 touch "/tmp/hw-delete-list" || exit 10 chmod 0600 "/tmp/hw-delete-list" || exit 11 diff --git a/core/modules/run-virt/fwtool/main.c b/core/modules/run-virt/fwtool/main.c index 9e272384..aa6e70f3 100644 --- a/core/modules/run-virt/fwtool/main.c +++ b/core/modules/run-virt/fwtool/main.c @@ -19,8 +19,8 @@ int main(int argc, char **argv) char * const nenv[] = { "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/openslx/sbin:/opt/openslx/bin", "HOME=/root", - "LC_ALL=C", - "LANG=C", + "LC_ALL=C.UTF-8", + "LANG=C.UTF-8", 0 }; -- cgit v1.2.3-55-g7522