Fix check for UTF-8 locate to match *.utf8

pull/128/head
Remi Salmon 2020-05-28 16:51:46 -06:00 committed by GitHub
parent 37c709c49d
commit b993836771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ shopt -qu failglob nullglob
shopt -qs extglob globasciiranges globstar shopt -qs extglob globasciiranges globstar
#* Check for UTF-8 locale and set LANG variable if not set #* Check for UTF-8 locale and set LANG variable if not set
if [[ ! $LANG =~ UTF-8 ]]; then if [[ ! $LANG =~ utf8|UTF-8 ]]; then
for set_lang in $(locale -a); do for set_lang in $(locale -a); do
if [[ $set_lang =~ utf8|UTF-8 ]]; then if [[ $set_lang =~ utf8|UTF-8 ]]; then
declare -x LANG="${set_lang/utf8/UTF-8}" declare -x LANG="${set_lang/utf8/UTF-8}"