[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug #2105] String.getBytes("UTF8") broken for non-zero offset strings
From: |
nobody |
Subject: |
[Bug #2105] String.getBytes("UTF8") broken for non-zero offset strings |
Date: |
Wed, 01 Jan 2003 12:37:22 -0500 |
=================== BUG #2105: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=2105&group_id=85
Changes by: Archie Cobbs <address@hidden>
Date: 2003-Jan-01 17:37 (GMT)
------------------ Additional Bug Attachment ----------------------------
File name: UTF8.java Size:0 KB
Test program.
http://savannah.gnu.org/bugs/download.php?group_id=85&bug_id=2105&bug_file_id=220
=================== BUG #2105: FULL BUG SNAPSHOT ===================
Submitted by: archie172 Project: classpath
Submitted on: 2003-Jan-01 17:34
Severity: 5 - Major Resolution: None
Assigned to: None Status: Open
Platform Version: None
Summary: String.getBytes("UTF8") broken for non-zero offset strings
Original Submission: [this bug originally filed against SableVM 1.0.5]
There is a bug in the class
gnu/java/io/encode/Encoder.java.
If a String has a non-zero offset into its char[] array
then
things get screwey.
The attached file UTF8.java demonstrates the bug.
It generates this output:
$ sablevm UTF8
bytes.length=20
bytes: 61 62 63 64 31 32 33 34 0 0 0 0 0 0 0 0 0 0 0 0
Other possibilities include the first byte being zero (!).
No Followups Have Been Posted
CC list is empty
File Attachments
****************
-------------------------------------------------------
Date: 2003-Jan-01 17:37 Name: UTF8.java Size: 0KB By: archie172
Test program.
http://savannah.gnu.org/bugs/download.php?group_id=85&bug_id=2105&bug_file_id=220
For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=2105&group_id=85