On Mon, Jul 25, 2011 at 01:02:45PM +0700, Ivan Shmakov wrote: > >>>>> yudi v <yudi....@gmail.com> writes: > > > Hi Paul, > > I am pretty sure you are mistaken, > > > 126-32 = 94 > > Let's try a simpler range: 32 to 32 is 1 character. And 32 - 32 > is, obviously, zero. Doesn't it seem like an off-by-one error? > > > and space is a printable character. > > Well, I don't have an opinion of my own, but here's what GNU > Libc thinks on the issue:
This is unfortunately incorrect--it's just the GNU implementation of the standard, not the standard itself. The answer is to be found in the ISO 2022 character set registry: http://www.itscj.ipsj.or.jp/ISO-IR/2-1.htm For US ASCII, it's this: http://www.itscj.ipsj.or.jp/ISO-IR/006.pdf And you can see that SPACE and DEL are missing (02/00 and 07/15) are missing. The reason for this, if you take a look at ISO 2022, http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-035.pdf is that ASCII is a designatable 94-character one-byte graphic character set, typically mapped to GL (02/01--07/14). Extension sets such as Latin-1 are then mapped into GR. Regards, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
signature.asc
Description: Digital signature