summaryrefslogtreecommitdiffstats
path: root/Functions/Prompts/prompt_special_chars
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Prompts/prompt_special_chars')
-rw-r--r--Functions/Prompts/prompt_special_chars2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/Prompts/prompt_special_chars b/Functions/Prompts/prompt_special_chars
index 82a1f2d96..0586f69d7 100644
--- a/Functions/Prompts/prompt_special_chars
+++ b/Functions/Prompts/prompt_special_chars
@@ -8,7 +8,7 @@
typeset -gA schars
-if [[ ${LC_ALL:-${LC_CTYPE:-$LANG}} = *(UTF-8|utf8)* ]]; then
+if [[ ${${LC_ALL:-${LC_CTYPE:-$LANG}}:u} = *(UTF-8|UTF8)* ]]; then
schars[300]=$'\xe2\x94\x94'
schars[304]=$'\xe2\x94\x8c'
schars[332]=$'\xe2\x94\x8c'