ensure UTF font is used

This commit is contained in:
James Barnett 2016-10-03 09:09:08 -05:00
parent 01d4af9e3e
commit 6594945ecf

View file

@ -32,8 +32,11 @@ PACMAN_ABORT_ON_FAIL="no"
# Virtual console fonts don't have the unicode checkmark # Virtual console fonts don't have the unicode checkmark
if [[ "$TERM" == "linux" ]]; then if [[ "$TERM" == "linux" ]]; then
checkmark="done" checkmark="done"
else # Ensure user is using UTF locale
elif [[ $(awk '/UTF-8/' <(echo $LANG)) ]]; then
checkmark="✓" checkmark="✓"
else
checkmark="done"
fi fi
if [[ -f "$SNAPPER_CONFIG_FILE" ]]; then if [[ -f "$SNAPPER_CONFIG_FILE" ]]; then