Skip to contentSkip to conversation

Some utf-8 characters are cut in the middle on redirections

DISCUSSION Alkis Georgopoulos 2 participants 3 messages Aug 7, 2010 – Aug 8, 2010

lore
Share & tools
lore
#0 lore raw
$ touch ρ
$ echo 1 > ρ
$ ls
?  ρ
$ ls | hexdump -C
00000000  cf 0a cf 81 0a

dash "cut" the "0x81" from the "0xcf81" representation of the Greek character rho, and so it created another file named "0xcf".

This only happens for a few utf-8 characters, not for all of them. Relevant bug report:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532302

Please CC me if possible, I'm not on the list.

Kind regards,
Alkis Georgopoulos

#1 lore raw
Quoted 7 lines · Alkis Georgopoulos
$ touch ??
$ echo 1 > ??
$ ls
?  ??
$ ls | hexdump -C
00000000  cf 0a cf 81 0a
Quoted 6 lines

dash "cut" the "0x81" from the "0xcf81" representation of the Greek character rho, and so it created another file named "0xcf".

This only happens for a few utf-8 characters, not for all of them. Relevant bug report:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532302

This bug is fixed in git commit f8231aea37e921492fc7fbd972385ab5b90e8627 which is not in any dash release yet.

The patch should apply to older dash versions also.

Signature · 1 line
Jilles Tjoelker
#2 lore raw

Στις 08-08-2010, ημέρα Κυρ, και ώρα 14:21 +0200, ο/η Jilles Tjoelker έγραψε:

Quoted 2 lines

This bug is fixed in git commit f8231aea37e921492fc7fbd972385ab5b90e8627 which is not in any dash release yet.

Thank you, I commented about the fix in Debian bug #532302 and in LP #382541.