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)
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Paul Koning <Paul_Koning at dell dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 04 May 2010 22:01:03 +0200
- Subject: Re: [RFC] Make string printing work on NetBSD (iconv issue)
- References: <19424.30941.651367.946330@pkoning-laptop.equallogic.com>
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.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."