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

Christos Zoulas christos at zoulas.com
Mon May 5 13:00:40 UTC 2025



> On May 4, 2025, at 7:13 AM, Jamie Landeg-Jones <jamie at catflap.org> wrote:
> 
> 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
> 
What version?

[8:59am] 103>printf $'\200' | hexdump -C
00000000  80                                                |.|
00000001
[8:59am] 104>echo $version
tcsh 6.24.10 (Astron) 2023-04-14 (x86_64-amd-NetBSD) options wide,nls,dl,al,kan,sm,rh,color,filec


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/tcsh/attachments/20250505/1609e05e/attachment.asc>


More information about the Tcsh mailing list