[Tcsh] 8 bit character bug in $'...' format?

Jamie Landeg-Jones jamie at catflap.org
Sun May 4 11:13:57 UTC 2025


I assumed the " \nnn    The character corresponding to the octal number nnn."
format would work with values between \200 to \377 but it instead seems to
utf-8 the result:

root at catflap# printf $'\177' | bindump
7f

root at catflap# printf $'\200' | bindump
c2 80

I expected the single char \x80 as the result, not the 2 character result.

Am I wrong?

Thanks, Jamie


More information about the Tcsh mailing list