Check for utf8 as well as UTF-8 in LANG

This commit is contained in:
James Barnett 2017-02-13 06:17:20 -06:00
parent d99b2a759f
commit 51cee6cf6c
No known key found for this signature in database
GPG key ID: E4B5E45AA3B8C5C3

View file

@ -46,7 +46,7 @@ PACMAN_ABORT_ON_FAIL="no"
if [[ "$TERM" == "linux" ]]; then
checkmark="done"
# Ensure user is using UTF locale
elif [[ $(awk '/UTF-8/' <(echo $LANG)) ]]; then
elif [[ $(awk '/UTF-8|utf8/' <(echo $LANG)) ]]; then
checkmark="✓"
else
checkmark="done"