[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath: utf-8 fix

Kaffe CVS cvs-commits at kaffe.org
Sat Feb 19 08:07:42 PST 2005


PatchSet 5565 
Date: 2005/02/19 16:01:16
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU Classpath: utf-8 fix

2005-02-19  Dalibor Topic  <robilad at kaffe.org>

Resynced with GNU Classpath.

2005-02-16  Julian Scheid  <julian at sektor37.de>

* gnu/java/nio/charset/UTF_8.java (decodeLoop): Set inPos to
in.position().
(encodeLoop): Likewise.

Members: 
	ChangeLog:1.3609->1.3610 
	libraries/javalib/gnu/java/nio/charset/UTF_8.java:1.3->1.4 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3609 kaffe/ChangeLog:1.3610
--- kaffe/ChangeLog:1.3609	Sat Feb 19 15:50:52 2005
+++ kaffe/ChangeLog	Sat Feb 19 16:01:16 2005
@@ -2,6 +2,16 @@
 
 	Resynced with GNU Classpath.
 	
+	2005-02-16  Julian Scheid  <julian at sektor37.de>
+
+	* gnu/java/nio/charset/UTF_8.java (decodeLoop): Set inPos to
+	in.position().
+	(encodeLoop): Likewise.
+	
+2005-02-19  Dalibor Topic  <robilad at kaffe.org>
+
+	Resynced with GNU Classpath.
+	
 	2005-02-16  Andrew John Hughes  <gnu_andrew at member.fsf.org>
 
 	* java/util/Locale.java
Index: kaffe/libraries/javalib/gnu/java/nio/charset/UTF_8.java
diff -u kaffe/libraries/javalib/gnu/java/nio/charset/UTF_8.java:1.3 kaffe/libraries/javalib/gnu/java/nio/charset/UTF_8.java:1.4
--- kaffe/libraries/javalib/gnu/java/nio/charset/UTF_8.java:1.3	Sat Feb  5 20:50:05 2005
+++ kaffe/libraries/javalib/gnu/java/nio/charset/UTF_8.java	Sat Feb 19 16:01:21 2005
@@ -101,7 +101,7 @@
     protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out)
     {
       // TODO: Optimize this in the case in.hasArray() / out.hasArray()
-      int inPos = 0;
+      int inPos = in.position(); 
       try
         {
           while (in.hasRemaining ())
@@ -196,7 +196,7 @@
 
     protected CoderResult encodeLoop (CharBuffer in, ByteBuffer out)
     {
-      int inPos = 0;
+      int inPos = in.position();
       try
         {
           // TODO: Optimize this in the case in.hasArray() / out.hasArray()




More information about the kaffe mailing list