This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Using UTF-8 as host charset
>>>>> "Paul" == <Paul_Koning@Dell.com> writes:
Paul> While it doesn't use phony iconv, there are some other questions that
Paul> have come up on this in the past. NetBSD (and possibly others) have
Paul> an iconv implementation that doesn't provide the "wchar_t" encoding
Paul> GDB assumes every iconv will have. I remember trying to do something
Paul> about this and running into concerns that wchar_t, formally speaking,
Paul> is not the same as UCS-2 even though for practical purposes the two
Paul> are interchangeable.
I guess NetBSD should use libiconv.
We could in theory write a portable "phony libiconv" that uses the
standard C wide/multi-byte conversion functions. But... libiconv
already did this, so it seemed simpler to just reuse it rather than try
to write our own.
Tom