RE: Your INTERMEDIATE_ENCODING patch for Solaris

Pierre Muller
2010-08-18T14:43:58Z

Upon further investigation, I must confess that the OpenSolaris
situation is a real mess:

I get a working libiconv version for x86_64 solaris
using CSW libiconv version 0x10D,
libiconv_open with parameter 'wchar_t' and 'UTF-8' works.
but on my Sparc64 test machine, libiconv is
on /usr/local/lib and its version is 0x10B.
This later version fails on calls to libiconv_open
with 'wchar_t' and 'ASCII'.
Then I discovered a difference:
I has LANG environment variable set in the first (x86_64 machine)
to en_US.UTF-8
so I tried to use that environment variable on the Sparc machine
and, o wonder, gdb starts to work!
So the Sparc iconv works if LANG is set to 'en_US.UTF-8',
but fails it LANG is not set.

Coming back to the x86_64 machine,
I checked what happened if I removed the LANG environment variable...
in that case it is still working, libiconv_open (ver 0x10D) accepts
'ASCII' to 'wchar_t' conversion, while version 0x10B seems to fail...
At least that is where I am now, but it might not be the
entire picture ...

Pierre Muller
Pascal language support maintainer for GDB