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]
Other format: [Raw text]

Re: UTF-16 not supported?


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


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