From 40464f39c5c94e20fc3f534663a6b17acf2e227a Mon Sep 17 00:00:00 2001 From: Leonid Volnitsky Date: Sat, 7 Jul 2012 08:51:28 +0300 Subject: better UTF detection --- git-prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-prompt.sh b/git-prompt.sh index 271326c..a206eaa 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -151,7 +151,7 @@ fi #################################################################### MARKERS - if [[ $LC_CTYPE =~ "UTF" && $TERM != "linux" ]]; then + if [[ "$LC_CTYPE $LC_ALL" =~ "UTF" && $TERM != "linux" ]]; then elipses_marker="…" else elipses_marker="..." -- cgit v1.2.3