This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: iconv on Solaris




--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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]