06-05-2007 09:30 AM
It appears that isblank() is declared in
/usr/include.dtk/ctype.h (which is what gets
pulled in by '#include
found no sign of an actual isblank() function
in any of the run-time stuff. The "configure"
script is gullible enough to believe that if a
test program containing isblank() can be
compiled successfully, then all must be well.
This might have been true before the "enhanced"
/usr/include.dtk/ctype.h was added, as its sole
purpose in life seems to be to get isblank()
declared. (Thanks for the "help", but ...)
So, am I missing some patch which adds
isblank() to some run-time library, or what's
Or is everyone else just using GCC (which
appears to be immune to the header file
"enhancements" in /usr/include.dtk)?
urtx# sizer -v
HP Tru64 UNIX V5.1B (Rev. 2650); Mon Feb 19 11:57:07 CST 2007
urtx# cc -V
Compaq C V6.5-303 (dtk) on HP Tru64 UNIX V5.1B (Rev. 2650)
Compiler Driver V6.5-302 (dtk) cc Driver
06-06-2007 12:49 AM
isblank() is obsolete and was replaced by localizable wide character functions. Updated utilities have defines and code similar to:
static wctype_t blankhandle;
#define isblank(c) (iswctype((c),blankhandle))
blankhandle = wctype("blank");
found_blank = isblank(*input);
06-07-2007 04:04 PM
"tar" folks, and have been told that in a
future gnulib release, isblank() will be
moved from the compile-is-enough list to the
compile-and-link list, so that should solve
this problem on the GNU side.
Still, it would be nice if the Tru64 header
files and run-time libraries were a bit more