[Tcsh] UTF-8 character problems
Jamie Landeg-Jones
jamie at catflap.org
Mon Feb 17 04:26:43 UTC 2025
I noticed a problem with tcsh and UTf-8 characters and "*" expansion. On writing this
email, I found another (somewhat related) problem!
I'll show that one first. By the way, "cod" is just a C-env "od".
My default LANG is en_GB.UTF-8
Tested on tcsh 6.24.15 and 6.24.14 (x86_64-amd-FreeBSD) options wide,nls,lf,dl,al,kan,sm,rh,color,filec
Any ideas?
Cheers, Jamie
jamie at catflap% l
total 0
0 drwx------ 2 jamie wheel - 0 7 Feb 15:44 ./
0 drwx------ 4 jamie wheel - 320 7 Feb 15:44 ../
jamie at catflap% touch $'aaa \360\237\223\272 xx'
jamie at catflap% sh
jamie at catflap$$ touch $'bbb \360\237\223\272 xx'
jamie at catflap$$ exit
jamie at catflap% l
total 0
0 drwx------ 2 jamie wheel - 128 7 Feb 15:45 ./
0 drwx------ 4 jamie wheel - 320 7 Feb 15:44 ../
0 -rw------- 1 jamie wheel - 0 7 Feb 15:44 aaa ð\302\237\302\223º xx
0 -rw------- 1 jamie wheel - 0 7 Feb 15:45 bbb xx
jamie at catflap% ls | cod -c
0000000 a a a 303 260 302 237 302 223 302 272 x x \n
0000020 b b b 360 237 223 272 x x \n
0000034
jamie at catflap% ls *
ls: bbb xx: No such file or directory
aaa ð??º xx
ls * |& cod -c
0000000 l s : b b b 372 x x : N o
0000020 s u c h f i l e o r d i
0000040 r e c t o r y \n a a a 303 260 302 237
0000060 302 223 302 272 x x \n
0000070
jamie at catflap% ls bbb<TAB KEY TO FILL AUTO-COMPLETE>
-- this gives:
jamie at catflap% ls bbb\ \U+1F4FA\ xx
-- and pressing return:
ls: bbb xx: No such file or directory
More information about the Tcsh
mailing list