Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* iconv without "wchar_t" as a conversion name
@ 2010-05-04 12:16 Paul Koning
  2010-05-04 13:15 ` Pierre Muller
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Koning @ 2010-05-04 12:16 UTC (permalink / raw)
  To: gdb

NetBSD has iconv support, essentially the same as in glibc, with one
crucial difference that messes up GDB.

In gdb_wchar.h, INTERMEDIATE_ENCODING is hardcoded as "wchar_t" and in
charset.c iconv_open() is called with INTERMEDIATE_ENCODING as the "to"
format.

As it happens, the NetBSD implementation of iconf does not list
"wchar_t" as a format it knows, though it does have a very long list of
supported formats that looks otherwise quite similar to what iconv on,
say, Linux supports.

I assume "wchar_t" means "whatever character format is the native
encoding of a wchar_t data type".  If so, it looks like "ucs-4" would be
a valid replacement, since wchar_t maps to int on NetBSD.  This suggest
that INTERMEDIATE_ENCODING should be determined by configure instead of
being hardcoded.

Does this make sense?  I can work on a patch, though hints on how to do
this in configure would be welcome since I'm a beginner in that space.

	paul 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-04 13:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-04 12:16 iconv without "wchar_t" as a conversion name Paul Koning
2010-05-04 13:15 ` Pierre Muller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox