From 33373b4ef487b902413325769d734a54a7e58a16 Mon Sep 17 00:00:00 2001 From: Peter Ajamian Date: Sat, 14 Aug 2021 16:37:40 +1200 Subject: [PATCH] Use C locale instead of en_US (#98) en_US is not guaranteed to be installed on all systems, but C is, so we use the C locale to guarantee that all the dnf and rpm command output parses properly. --- migrate2rocky/migrate2rocky.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migrate2rocky/migrate2rocky.sh b/migrate2rocky/migrate2rocky.sh index 081ae5b..14cb4c0 100644 --- a/migrate2rocky/migrate2rocky.sh +++ b/migrate2rocky/migrate2rocky.sh @@ -106,7 +106,8 @@ errmsg () { printf '%s%s%s' "$errcolor" "$msg" "$nocolor" >&4 } -export LC_ALL=en_US.UTF-8 LANGUAGE=en_US +export LC_ALL=C.UTF-8 +unset LANGUAGE shopt -s nullglob SUPPORTED_MAJOR="8"