From 44b92c9b5e363a6d1bab1891175a27f5ccc5eefd Mon Sep 17 00:00:00 2001 From: Remi Salmon Date: Fri, 29 May 2020 10:51:22 -0600 Subject: [PATCH] Ensure LANG is in .UTF-8 format --- bashtop | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bashtop b/bashtop index 7a29cfc..21acd81 100755 --- a/bashtop +++ b/bashtop @@ -70,6 +70,8 @@ if [[ ! $LANG =~ utf8|UTF-8 ]]; then echo "ERROR: No UTF-8 locale found!" exit 1 fi +else + declare -x LANG=${LANG/utf8/UTF-8} fi declare -a banner banner_colors