lex.c (java_new_lexer): Call iconv_close on temp handle used to check for byte swap.
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. (http://gcc.gnu.org/ml/java-patches/2001-q2/msg00185.html ) From-SVN: r41818
This commit is contained in:
parent
d8ce02bcdc
commit
4def8930da
@ -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>
|
2001-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||||
|
|
||||||
* decl.c: NULL_PTR -> NULL.
|
* decl.c: NULL_PTR -> NULL.
|
||||||
|
@ -269,6 +269,7 @@ java_new_lexer (finput, encoding)
|
|||||||
outc = 2;
|
outc = 2;
|
||||||
|
|
||||||
r = iconv (handle, (const char **) &inp, &inc, &outp, &outc);
|
r = iconv (handle, (const char **) &inp, &inc, &outp, &outc);
|
||||||
|
iconv_close (handle);
|
||||||
/* Conversion must be complete for us to use the result. */
|
/* Conversion must be complete for us to use the result. */
|
||||||
if (r != (size_t) -1 && inc == 0 && outc == 0)
|
if (r != (size_t) -1 && inc == 0 && outc == 0)
|
||||||
need_byteswap = (result != 0xfeff);
|
need_byteswap = (result != 0xfeff);
|
||||||
|
Loading…
Reference in New Issue
Block a user