From cb9a4227920133e78cd737d36f8085b6f0a2e362 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Sun, 15 Feb 2026 22:45:16 -0500 Subject: [PATCH] Probe the local printf for unicode --- tcshrc.aliases | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tcshrc.aliases b/tcshrc.aliases index 517909a..e0702fe 100644 --- a/tcshrc.aliases +++ b/tcshrc.aliases @@ -170,6 +170,15 @@ else alias p echo "Password store not found!" endif +# Pick up the coreutils printf, if it exists... +if( -f `which gprintf` ) then + alias printf gprintf +endif + +if( ! { printf '\u0000' } ) >&/dev/null then + setenv CSHENV_NO_UNICODE_PRINTF +endif + safe_source ${CSHENV_DIR}/tcshrc.aliases.${CSHENV_SYSTEM} safe_source ${CSHENV_DIR}/tcshrc.aliases.${CSHENV_HOSTNAME} safe_source ${CSHENV_DIR}/tcshrc.aliases.user