From c9f70665c4d668b6a9ffef513818d898e1c44035 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Fri, 22 Apr 2022 17:36:54 -0400 Subject: [PATCH] Make unicode char construction more portable. --- tcshrc.prompt.defs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tcshrc.prompt.defs b/tcshrc.prompt.defs index 4de75f6..52428e5 100644 --- a/tcshrc.prompt.defs +++ b/tcshrc.prompt.defs @@ -89,7 +89,8 @@ set prompt_hsym=0 set referencechars=() foreach ch ($referencechars_raw) - set referencechars=( $referencechars `env LC_ALL=C.UTF-8 printf "\u${ch}"` ) + set unicode=`printf "\\u${ch}"` + set referencechars=( $referencechars `printf "${unicode}"` ) end if( $CSHENV_SYSTEM == "Darwin" ) then