This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: libgcj/9802 UTF-8 surrogate handling and char converterpending bytes
Hi,
On Fri, 2003-06-06 at 15:52, Michael Koch wrote:
> > 2002-06-06 Mark Wielaard <mark@klomp dot org>
> >
> > * java/io/PrintStream.java (writeChars(char[],int, int)):
> > Check converter.havePendingBytes().
> > (writeChars(String,int,int)): Likewise.
> > * java/io/OutputStreamWriter.java (writeChars(char[], int,
> > int)): Check converter.havePendingBytes() and flush buffer when
> > stalled.
> >
> > OK to check this in now?
>
> At least the java/io/PrintStream.java part is not needed. I plan to
> merge it with Classpath's version soon. Then gnu/gcj/convert stuff
> will not be used anymore (directly).
OK. The Classpath version wraps PrintWriter inside PrintStream so it
will eventually use the OutputStreamWriter to do the conversion. That is
nice because that is one place less to do this converter foo.
If you check in your patch before mine is approved I will drop the
PrintStream.writeChars() part and only check in the
OutputStreamWriter.writeChars() part.
Cheers,
Mark