Re: Your INTERMEDIATE_ENCODING patch for Solaris

Tom Tromey
2010-08-31T16:47:19Z

>>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr> writes:

Pierre> After searching, it appears that the problem comes from the fact
Pierre> that /usr/local/include is searched before /usr/include,
Pierre> while /usr/local/lib is not searched at all for libraries.

Yuck.

This setup seems unfortunate but I don't think there is much gdb should
do about it.

Pierre> Test machine #3 x86_64 prcoessor:
[...]
Pierre> So this one uses c library iconv.
Pierre> (top-gdb) p version
Pierre> $1 = <error reading variable>
Pierre> (top-gdb) inf fun iconv
Pierre> All functions matching regular expression "iconv":

Pierre> So here, the c library iconv functions are used,
Pierre> but the default host-charset is set to ASCII which is
Pierre> not handled by that iconv :(

I am not sure how this happens with the patch I posted.
Does this machine define __STDC_ISO_10646__?
Or did I somehow get the #if logic wrong?

Pierre> So I would like to have the default host and target
Pierre> charset changed to UTF-8.

What does nl_langinfo(CODESET) return on this sytem?
If you remove the special "646" case, does it work?

Tom