Mercurial > vim
diff src/fileio.c @ 834:5117153003bd v7.0e
updated for version 7.0e
author | vimboss |
---|---|
date | Sun, 16 Apr 2006 18:30:08 +0000 |
parents | 45fad0f590d0 |
children | 8bebcabccc2c |
line wrap: on
line diff
--- 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. */