mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
detect empty LANG
This commit is contained in:
parent
c867b85f95
commit
ad482288fa
1 changed files with 5 additions and 1 deletions
|
@ -49,7 +49,11 @@ unset LD_LIBRARY_PATH
|
|||
|
||||
if [ "$LANG" != "en_US.UTF-8" ] && [ "$LANG" != "en_CA.UTF-8" ]; then
|
||||
if [ -z "$MSYSTEM" ] || [ "$LANG" != "C.UTF-8" ]; then
|
||||
echo -E "Warning: LANG is $LANG" >&2
|
||||
if [ -z "$LANG" ]; then
|
||||
echo -E "Warning: LANG is empty!" >&2
|
||||
else
|
||||
echo -E "Warning: LANG is $LANG" >&2
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue