From: Mischa POSLAWSKY Date: Mon, 16 Feb 2015 16:42:34 +0000 (+0100) Subject: charset: replace delete character by symbol substitute X-Git-Tag: v1.7~144 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/f56b4ebec8d7670a92fc941e9efd9ebe5d0c6f53 charset: replace delete character by symbol substitute Like other ASCII control characters, represent U+007F by more readable representation U+2421 SYMBOL FOR DELETE. --- diff --git a/tools/mkcharinfo b/tools/mkcharinfo index c6c8900..27c11d9 100755 --- a/tools/mkcharinfo +++ b/tools/mkcharinfo @@ -105,7 +105,9 @@ for my $chr (keys %info) { ? '<'.$info->{unicode10}.'>' # the old name was much more useful : sprintf('', $cp); # at least identify by value # show descriptive symbols instead of control chars themselves - $info->{string} = $cp < 32 ? chr($cp + 0x2400) : chr(0xFFFD); + $info->{string} = $cp < 32 ? chr($cp + 0x2400) : + $cp == 127 ? chr(0x2421) : + chr(0xFFFD); } }