From 16399c22ceaab661a42e7549b1686c287a89c7c5 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Wed, 4 Jun 2025 14:12:12 -0400 Subject: [PATCH] FreeBSD Unicode printing. --- tcshrc.prompt.defs | 4 ++-- tcshrc.prompt.final | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tcshrc.prompt.defs b/tcshrc.prompt.defs index 82deb97..6481b87 100644 --- a/tcshrc.prompt.defs +++ b/tcshrc.prompt.defs @@ -101,8 +101,8 @@ set prompt_hsym=0 set referencechars=() foreach ch ($referencechars_raw) - set unicode=`printf "\\u${ch}"` - set referencechars=( $referencechars `printf "${unicode}"` ) + set unicode=`gprintf "\\u${ch}"` + set referencechars=( $referencechars `gprintf "${unicode}"` ) end if( $CSHENV_SYSTEM == "Darwin" ) then diff --git a/tcshrc.prompt.final b/tcshrc.prompt.final index 8191a6b..1aa1694 100644 --- a/tcshrc.prompt.final +++ b/tcshrc.prompt.final @@ -281,9 +281,9 @@ if( 0 == ${__res} ) then # If the font doesn't support the special branch symbol... - set branch_symbol=`printf "\uE0A0"` + set branch_symbol=`gprintf "\uE0A0"` # I could always fallback to this one... (keep padded spaces... for alignment) - set branch_symbol=`printf '\u2387\ \ '` + set branch_symbol=`gprintf '\u2387\ \ '` git rev-list --count --left-right \@\{upstream\}..HEAD>&/dev/null set __res=$? #echo "Got: ${git_counts}"