|
From: | gcc-bugzilla at gcc dot gnu dot org |
Subject: | [Bug classpath/22743] Wrong maxBytesPerChar from UTF-16BE, UTF-16LE and UTF-16 |
Date: | 16 Oct 2005 01:26:57 -0000 |
Seems like the UTF-16BE and UTF-16LE charset encoder classes return 4 from maxBytesPerChar because they are allowing for a byte ordering mark. Equally the UTF-16 charset encoder class returns 2. I think that the values passed to the UTF_16Encoder constructor for the useByteOrderMark parameter are the wrong way around. ------- Comment #1 from from-classpath at savannah dot gnu dot org 2004-10-15 09:04 ------- I just commited a fix for this. The suggested solution was correct. I commited a testcase to mauve for this too. Thanks for your contribution. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22743
[Prev in Thread] | Current Thread | [Next in Thread] |