Fix check for UTF-8 locate to match *.utf8
parent
37c709c49d
commit
b993836771
2
bashtop
2
bashtop
|
@ -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}"
|
||||||
|
|
Loading…
Reference in New Issue