Iconv / Solaris

Daniel Jacobowitz drow@false.org
Thu Aug 27 22:03:00 GMT 2009


On Thu, Aug 27, 2009 at 04:42:58PM -0400, Daniel Jacobowitz wrote:
> Maybe I'm thinking about this wrong... can we determine the encoding
> of wchar_t somehow that works on Solaris?  Something like what we do
> now with nl_langinfo?  Or is it not guaranteed to have any known
> encoding?
> 
> I'm lost in the configure maze, but if we don't define PHONY_ICONV,
> then INTERMEDIATE_CHARSET ought to be host_charset anyway.  So the
> fact that your patch made a difference implies that PHONY_ICONV is
> defined.  So what's failing?  Isn't it our *dummy* iconv_open?

No, HAVE_ICONV is defined.  So how does changing the default
definition of INTERMEDIATE_ENCODING make a difference?

All of HAVE_ICONV, HAVE_WCHAR_H, HAVE_BTOWC are defined.

Oh.  We use host_charset if gdb_wchar_t is char.  I misread the
#if's... I don't see how you use iconv and wchar_t together,
otherwise.  Are you just not supposed to?

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list