*wprintf and *wscanf requirement
J.T. Conklin
jtc@acorntoolworks.com
Thu Mar 3 19:17:00 GMT 2005
I'm helping a co-worker who needs to build log4cxx on NetBSD 2.0 and
is having trouble because it uses std::wstrings which aren't enabled
on NetBSD due to the lack of *wprintf and *wscanf.
I see that acinclude.m4 includes tests that disables libstdc++'s wide
character support if the target doesn't support most of the wide char
printf and scanf functions (it allows vfwscanf, vswscanf, and vwscanf
to be omitted), but I haven't been able to find any instances where
the library itself uses the functions. Did the library once use these
C library functions for it's binary/ascii conversions, and when the
library was changed to have it's own code the requirement not relaxed?
I'm working to add the missing functions to NetBSD-current, but would
it also be reasonable to change libstdc++'s acinclude.m4 to treat all
the *printf and *scanf functions as optional, and to add the missing
conditionals to std_cwchar.h to avoid referencing functions not
available on the target (as is currently done for vfwscanf, vswscanf,
and vwscanf)?
Many thanks,
--jtc
--
J.T. Conklin
More information about the Libstdc++
mailing list