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 converter pending bytes
- From: Michael Koch <konqueror at gmx dot de>
- To: Mark Wielaard <mark at klomp dot org>, java-patches at gcc dot gnu dot org
- Date: Fri, 6 Jun 2003 15:52:55 +0200
- Subject: Re: libgcj/9802 UTF-8 surrogate handling and char converter pending bytes
- References: <1054907059.21991.90.camel@elsschot>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Freitag, 6. Juni 2003 15:44 schrieb Mark Wielaard:
> Hi,
>
> I have been out of the loop for a while and this is a follow up to
> a patch from a few months ago. I didn't really push it back then
> since I assumed that 3.3 could be released any moment then.
> See http://gcc.gnu.org/ml/java-patches/2003-q1/msg00756.html
>
> I have updated the patch to current CVS and reran all tests.
> No regressions and it fixes the Mauve surrogate test.
>
> 2002-06-06 James Clark <jjc@jclark dot com>
>
> Fix for PR libgcj/8738:
> * gnu/gcj/convert/UnicodeToBytes.java (havePendingBytes):
> New method. * gnu/gcj/convert/Output_SJIS.java (havePendingBytes):
> Likewise. * gnu/gcj/convert/Output_EUCJIS.java (havePendingBytes):
> Likewise. * gnu/gcj/convert/Output_UTF8.java (havePendingBytes):
> Likewise. (write): Always decrease avail when count is increased. *
> java/lang/natString.cc (getBytes): Check converter
> havePendingBytes() and whether output buffer is full before
> increasing size.
>
> 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).
Michael
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+4Jy4WSOgCCdjSDsRAsvnAJ96orV/vkq2UpQtoDaRS4XrrE5FRACdEylg
y1mBWigE+pupB5QEfmclQhY=
=Ppte
-----END PGP SIGNATURE-----