This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: UTF-16 not supported?
- From: Tom Tromey <tromey at redhat dot com>
- To: Suresh Raman <sugansha at yahoo dot com>
- Cc: java at gcc dot gnu dot org
- Date: 16 Aug 2002 10:50:57 -0600
- Subject: Re: UTF-16 not supported?
- References: <20020815220201.86425.qmail@web10307.mail.yahoo.com>
- Reply-to: tromey at redhat dot com
>>>>> "Suresh" == Suresh Raman <sugansha@yahoo.com> writes:
Suresh> The output of the program should be "hello world", which it is with
Suresh> UTF-8. But with UTF-16 or UTF-16BE, the output is a truncated string
Suresh> "hell" or "hello".
This is definitely a bug.
I think there are situations where the encoding/decoding functions can
mistake "lack of progress" for "I'm done". I'm not certain but it is
possible that this code triggers that bug.
Tom