From 6ee3330480f3f48a5152f0c33b65389b20df5baf Mon Sep 17 00:00:00 2001 From: Peter Ajamian Date: Sat, 3 Jul 2021 17:55:39 +1200 Subject: [PATCH] Force en_US.UTF-8 In order to properly parse output from certain commands we must ensure that output is in the correct locale and character set. Previously we had just set LANG but that doesn't force the issue and some systems may still have issues. While this change will override a person's foreign language preferences this is preferable to it causing a failed migration. --- migrate2rocky/migrate2rocky.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrate2rocky/migrate2rocky.sh b/migrate2rocky/migrate2rocky.sh index 3f267c2..e121492 100644 --- a/migrate2rocky/migrate2rocky.sh +++ b/migrate2rocky/migrate2rocky.sh @@ -105,7 +105,7 @@ errmsg () { printf '%s%s%s' "$errcolor" "$msg" "$nocolor" >&4 } -export LANG=en_US.UTF-8 +export LC_ALL=en_US.UTF-8 LANGUAGE=en_US shopt -s nullglob SUPPORTED_MAJOR="8"