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" == Paul Koning <Paul_Koning@Dell.com> writes:
Paul> NetBSD clearly is using UCS-4 for wchar_t, but it does not define that
Paul> symbol.
I have been wondering about this again recently.
I dug through the NetBSD libc a little, looking for this, but I couldn't
find it. Then I ran across this page today:
http://www.gnu.org/software/libunistring/manual/libunistring.html#The-wchar_005ft-mess
This claims that, like Solaris, NetBSD uses a locale-dependent wchar_t
encoding. If this is the case then disabling the wide character code is
probably the simplest approach that will do something sensible for you.
BTW, libunistring seems like a nice approach. It is close to what I
wish wchar_t support actually looked like. I am tempted to say we
should go that route, but of course that would mean adding another
dependency :-(
Tom