commit | b21e5843e53d3582df5f521f57e7e52e83d51d10 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Apr 16 18:30:08 2006 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Apr 16 18:30:08 2006 +0000 |
tree | 6b542fe50eb62f693046067880e416e8b149b2eb | |
parent | 99ebf04cf6acdd2b10d670e1cd6be4eae17333cf [diff] [blame] |
updated for version 7.0e
diff --git a/src/fileio.c b/src/fileio.c index e0ae301..46b50f8 100644 --- a/src/fileio.c +++ b/src/fileio.c
@@ -1259,6 +1259,13 @@ if (bad_char_behavior != BAD_DROP) { fio_flags = 0; /* don't convert this */ +# ifdef USE_ICONV + if (iconv_fd != (iconv_t)-1) + { + iconv_close(iconv_fd); + iconv_fd = (iconv_t)-1; + } +# endif if (bad_char_behavior == BAD_KEEP) { /* Keep the trailing bytes as-is. */