Subject: Re: isprint() and isblank()
To: None <tech-userlevel@netbsd.org>
From: None <itojun@iijlab.net>
List: tech-userlevel
Date: 01/21/2001 02:30:20
> this is my proposed fix. unfortunately, since ctype.h defines
> macros for is*, binaries need to be recompiled to use the new isprint()
> declaration. isprint() hardcodes space (' ') so that we do not
> change (old) ctype file format.
the patch has bad sideeffect: isprint('\t') result will go strange
unless you recompile your binary.
isprint('\t') isblank('\t')
used to be: false false (incorrect)
libc change only (no binary recompilation)
true (incorrect) true
correct one (if you recompile binaries and libc, it will be achieved):
false true
itojun