diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-16 18:30:08 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-16 18:30:08 +0000 |
commit | b21e5843e53d3582df5f521f57e7e52e83d51d10 (patch) | |
tree | 6b542fe50eb62f693046067880e416e8b149b2eb /src/fileio.c | |
parent | 99ebf04cf6acdd2b10d670e1cd6be4eae17333cf (diff) |
updated for version 7.0ev7.0e
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index e0ae301dac..46b50f8cf4 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -1259,6 +1259,13 @@ retry: 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. */ |