classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] RFC: native/jni/java-nio/gnu_java_nio_charset_iconv_IconvD


From: Ito Kazumitsu
Subject: [cp-patches] RFC: native/jni/java-nio/gnu_java_nio_charset_iconv_IconvDecoder.c
Date: Sat, 05 Nov 2005 02:19:59 +0900 (JST)

This path should fix the bug #24467
(gnu_java_nio_charset_iconv_IconvDecoder.c treats normal bytes as invalid).

2005-11-04  Ito Kazumitsu  <address@hidden>

        * native/jni/java-nio/gnu_java_nio_charset_iconv_IconvDecoder.c.orig
        (Java_gnu_java_nio_charset_iconv_IconvDecoder_decode):
        Do not check errno == EINVAL, which is a normal case.

--- native/jni/java-nio/gnu_java_nio_charset_iconv_IconvDecoder.c.orig  Sat Nov 
 5 02:09:14 2005
+++ native/jni/java-nio/gnu_java_nio_charset_iconv_IconvDecoder.c       Sat Nov 
 5 02:10:35 2005
@@ -140,7 +140,7 @@
 
   if (retval == (size_t) (-1))
     {
-      if (errno == EILSEQ || errno == EINVAL)
+      if (errno == EILSEQ)
        retval = 1;
       else
        retval = 0;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]