FreeBSD Unicode printing.

This commit is contained in:
2025-06-04 14:12:12 -04:00
parent d7c5eab0c5
commit 16399c22ce
2 changed files with 4 additions and 4 deletions

View File

@ -101,8 +101,8 @@ set prompt_hsym=0
set referencechars=() set referencechars=()
foreach ch ($referencechars_raw) foreach ch ($referencechars_raw)
set unicode=`printf "\\u${ch}"` set unicode=`gprintf "\\u${ch}"`
set referencechars=( $referencechars `printf "${unicode}"` ) set referencechars=( $referencechars `gprintf "${unicode}"` )
end end
if( $CSHENV_SYSTEM == "Darwin" ) then if( $CSHENV_SYSTEM == "Darwin" ) then

View File

@ -281,9 +281,9 @@ if( 0 == ${__res} ) then
# If the font doesn't support the special branch symbol... # 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) # 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 git rev-list --count --left-right \@\{upstream\}..HEAD>&/dev/null
set __res=$? set __res=$?
#echo "Got: ${git_counts}" #echo "Got: ${git_counts}"