This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: iconv on Solaris
- To: Jeff Sturm <jsturm at one-point dot com>
- Subject: Re: iconv on Solaris
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Mon, 24 Sep 2001 08:45:20 -0700
- cc: "java at gcc dot gnu dot org" <java at gcc dot gnu dot org>
--On Monday, September 24, 2001 08:47:26 AM -0400 Jeff Sturm
<jsturm@one-point.com> wrote:
>
>
> On Mon, 24 Sep 2001, Jeff Sturm wrote:
>> Apparently Solaris 8 iconv supplies the missing converters but breaks
>> somewhere else.
>
> Or not. I just checked more carefully. 0xFEFF is the Byte Order Mark.
> From unicode.org:
OK, thanks for looking that up.
That indicates that Solaris is probably doing the right thing,
and libjava/gcj/convert/natIconv.cc should be fixed to handle the BOM.
Or, just use UCS-2BE on Solaris.
I'm not going to have time to put together a patch, unfortunately;
what I've got locally is the hideous:
#ifdef __sun__
"UCS-2BE",
#else
"UCS-2",
#endif
which does work.
Thanks,
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com