On Mon, Jul 25, 2011 at 09:51:12AM +0100, Roger Leigh wrote: > 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
However, in terms of LC_CTYPE printable and graphic characters are only different in the classification of SPACE. All characters 02/00 to 07/15 are "printable", hence the glibc check is correct, but only characters 02/01 to 07/15 are "graphic" (as opposed to "control") characters. SPACE is technically outside the range of all designatable 94-character sets. 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