From 824cf137d9be40d763def5f296dfab8b1543b7ac Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Thu, 24 Dec 2020 08:22:03 +0100 Subject: [PATCH] fix test for missing unicode supprt --- bashbot.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bashbot.sh b/bashbot.sh index 6f158fe..107180e 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -11,7 +11,7 @@ # This file is public domain in the USA and all free countries. # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) # -#### $$VERSION$$ v1.2-dev2-55-g4a4f73b +#### $$VERSION$$ v1.2-dev2-58-g4d1c237 # # Exit Codes: # - 0 success (hopefully) @@ -44,8 +44,8 @@ if [ -t 1 ] && [ -n "$TERM" ]; then fi # we need some bash 4+ features, check for old bash by feature -if [ "$(echo -e "\u1111")" == "\u1111" ]; then - echo -e "${ORANGE}Warning: Unicode '\uxxxx' seems not supported, install a more current bash.${NC}" +if [ "$({ LC_ALL=C.utf-8 echo -e "\u1111"; } 2>/dev/null)" == "\u1111" ]; then + echo -e "${ORANGE}Warning: Missing unicode '\uxxxx' support, no unicode locale set or to old bash version.${NC}" fi