OSDN Git Service

2001-05-03 Mo DeJong <mdejong@redhat.com>
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 May 2001 00:34:48 +0000 (00:34 +0000)
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 May 2001 00:34:48 +0000 (00:34 +0000)
        * lex.c (java_new_lexer): Call iconv_close on temp handle used to
        check for byte swap.

(http://gcc.gnu.org/ml/java-patches/2001-q2/msg00185.html )

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41818 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/lex.c

index 1f53beb..1831e2d 100644 (file)
@@ -1,3 +1,8 @@
+2001-05-03  Mo DeJong  <mdejong@redhat.com>
+
+        * lex.c (java_new_lexer): Call iconv_close on temp handle used to
+       check for byte swap.
+
 2001-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * decl.c: NULL_PTR -> NULL.
index 0bf6d7a..28a73e3 100644 (file)
@@ -269,6 +269,7 @@ java_new_lexer (finput, encoding)
              outc = 2;
 
              r = iconv (handle, (const char **) &inp, &inc, &outp, &outc);
+             iconv_close (handle);
              /* Conversion must be complete for us to use the result.  */
              if (r != (size_t) -1 && inc == 0 && outc == 0)
                need_byteswap = (result != 0xfeff);