This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/14687] Incorrect UTF-8 byte->String conversion
- From: "joeclark at iastate dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jun 2004 21:56:56 -0000
- Subject: [Bug java/14687] Incorrect UTF-8 byte->String conversion
- References: <20040323044412.14687.joeclark@iastate.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From joeclark at iastate dot edu 2004-06-26 21:56 -------
Okay, I've attached a java file that illustrates the bug. For me, the UTF
character set does *NOT* work for *ANY* ASCII characters. Perhaps I'm entering
the bytes wrong or something; if this is the case, the attached code should make
my error clear.
When I run this with Sun's JDK, I get the same value for all 127 values. With
gcj, *every* UTF-8 conversion results in a "?" string; here's a quick snippet:
b 109 --> utf ? & iso m
b 110 --> utf ? & iso n
b 111 --> utf ? & iso o
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14687