This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [RFC] Make string printing work on NetBSD (iconv issue)
> Paul Koning <Paul_Koning@dell.com> writes:
>
> > +dnl Check if iconv handles wchar_t, and if not, what to use
instead.
> > +if test "x$am_cv_func_iconv" = "xyes"; then
> > + AC_MSG_CHECKING(iconv codeset for wchar_t)
> > + if iconv -f ascii -t wchar_t /dev/null; then
> > + AC_MSG_RESULT(wchar_t)
> > + AC_DEFINE([ICONV_INTERMEDIATE_ENCODING],["wchar_t"],
> > + [Codeset name that corresponds to wchar_t encoding.])
>
> That tests iconv on the build system, but gdb uses iconv on the host
> system.
True. Is there a way to test the host iconv? I can make the check
conditional on "not a cross build". Then what about cross builds? If
there isn't a test that gives the answer, I could do something based on
host OS type. Or that plus libiconv present/absent?
paul