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.
This commit is contained in:
Peter Ajamian 2021-08-14 16:37:40 +12:00 committed by GitHub
parent 8d68003ddf
commit 33373b4ef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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"