public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
* [Bug libgcj/27171] New: UTF8 PrintWriter goes haywire @ 2006-04-14 19:18 green at redhat dot com 2006-04-17 20:13 ` [Bug libgcj/27171] " tromey at gcc dot gnu dot org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: green at redhat dot com @ 2006-04-14 19:18 UTC (permalink / raw) To: java-prs Feeding specific binary data to a UTF8 PrintWriter causes it to go haywire and write out a steady stream of nonsense (0, I think). The was tracked down in Azureus by Jon Burgess. He created a simple test case to reproduce the problem. The test case is attached to this Fedora bug... https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=187698 -- Summary: UTF8 PrintWriter goes haywire Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: green at redhat dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27171 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/27171] UTF8 PrintWriter goes haywire 2006-04-14 19:18 [Bug libgcj/27171] New: UTF8 PrintWriter goes haywire green at redhat dot com @ 2006-04-17 20:13 ` tromey at gcc dot gnu dot org 2006-04-17 20:23 ` tromey at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: tromey at gcc dot gnu dot org @ 2006-04-17 20:13 UTC (permalink / raw) To: java-prs ------- Comment #1 from tromey at gcc dot gnu dot org 2006-04-17 20:13 ------- Simplified test case: public class main { public static void main(String[] args) { char x = 56478; System.out.println(new String(new char[] { x })); } } -- tromey at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-04-17 20:13:49 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27171 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/27171] UTF8 PrintWriter goes haywire 2006-04-14 19:18 [Bug libgcj/27171] New: UTF8 PrintWriter goes haywire green at redhat dot com 2006-04-17 20:13 ` [Bug libgcj/27171] " tromey at gcc dot gnu dot org @ 2006-04-17 20:23 ` tromey at gcc dot gnu dot org 2006-04-17 21:41 ` tromey at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: tromey at gcc dot gnu dot org @ 2006-04-17 20:23 UTC (permalink / raw) To: java-prs ------- Comment #2 from tromey at gcc dot gnu dot org 2006-04-17 20:23 ------- Testing a fix. -- tromey at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |tromey at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2006-04-17 20:13:49 |2006-04-17 20:23:35 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27171 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/27171] UTF8 PrintWriter goes haywire 2006-04-14 19:18 [Bug libgcj/27171] New: UTF8 PrintWriter goes haywire green at redhat dot com 2006-04-17 20:13 ` [Bug libgcj/27171] " tromey at gcc dot gnu dot org 2006-04-17 20:23 ` tromey at gcc dot gnu dot org @ 2006-04-17 21:41 ` tromey at gcc dot gnu dot org 2006-04-17 21:45 ` tromey at gcc dot gnu dot org 2006-04-17 21:46 ` tromey at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: tromey at gcc dot gnu dot org @ 2006-04-17 21:41 UTC (permalink / raw) To: java-prs ------- Comment #3 from tromey at gcc dot gnu dot org 2006-04-17 21:41 ------- Subject: Bug 27171 Author: tromey Date: Mon Apr 17 21:41:47 2006 New Revision: 113013 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113013 Log: PR libgcj/27171: * testsuite/libjava.lang/pr27171.java: New file. * testsuite/libjava.lang/pr27171.out: New file. * gnu/gcj/convert/Output_UTF8.java (havePendingBytes): Return true if we've seen a high surrogate. (write): Handle high surrogates at the end of the stream. Properly emit isolated low surrogates. Added: trunk/libjava/testsuite/libjava.lang/pr27171.java trunk/libjava/testsuite/libjava.lang/pr27171.out Modified: trunk/libjava/ChangeLog trunk/libjava/gnu/gcj/convert/Output_UTF8.java -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27171 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/27171] UTF8 PrintWriter goes haywire 2006-04-14 19:18 [Bug libgcj/27171] New: UTF8 PrintWriter goes haywire green at redhat dot com ` (2 preceding siblings ...) 2006-04-17 21:41 ` tromey at gcc dot gnu dot org @ 2006-04-17 21:45 ` tromey at gcc dot gnu dot org 2006-04-17 21:46 ` tromey at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: tromey at gcc dot gnu dot org @ 2006-04-17 21:45 UTC (permalink / raw) To: java-prs ------- Comment #4 from tromey at gcc dot gnu dot org 2006-04-17 21:45 ------- Subject: Bug 27171 Author: tromey Date: Mon Apr 17 21:45:42 2006 New Revision: 113014 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113014 Log: PR libgcj/27171: * testsuite/libjava.lang/pr27171.java: New file. * testsuite/libjava.lang/pr27171.out: New file. * gnu/gcj/convert/Output_UTF8.java (havePendingBytes): Return true if we've seen a high surrogate. (write): Handle high surrogates at the end of the stream. Properly emit isolated low surrogates. Added: branches/gcc-4_1-branch/libjava/testsuite/libjava.lang/pr27171.java - copied unchanged from r113013, trunk/libjava/testsuite/libjava.lang/pr27171.java branches/gcc-4_1-branch/libjava/testsuite/libjava.lang/pr27171.out - copied unchanged from r113013, trunk/libjava/testsuite/libjava.lang/pr27171.out Modified: branches/gcc-4_1-branch/libjava/ChangeLog branches/gcc-4_1-branch/libjava/gnu/gcj/convert/Output_UTF8.java -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27171 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcj/27171] UTF8 PrintWriter goes haywire 2006-04-14 19:18 [Bug libgcj/27171] New: UTF8 PrintWriter goes haywire green at redhat dot com ` (3 preceding siblings ...) 2006-04-17 21:45 ` tromey at gcc dot gnu dot org @ 2006-04-17 21:46 ` tromey at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: tromey at gcc dot gnu dot org @ 2006-04-17 21:46 UTC (permalink / raw) To: java-prs ------- Comment #5 from tromey at gcc dot gnu dot org 2006-04-17 21:46 ------- Fix checked in. -- tromey at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |4.1.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27171 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-04-17 21:46 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-04-14 19:18 [Bug libgcj/27171] New: UTF8 PrintWriter goes haywire green at redhat dot com 2006-04-17 20:13 ` [Bug libgcj/27171] " tromey at gcc dot gnu dot org 2006-04-17 20:23 ` tromey at gcc dot gnu dot org 2006-04-17 21:41 ` tromey at gcc dot gnu dot org 2006-04-17 21:45 ` tromey at gcc dot gnu dot org 2006-04-17 21:46 ` tromey at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).