]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.0.0685: when conversion fails written file may be truncated v8.0.0685
authorBram Moolenaar <Bram@vim.org>
Tue, 27 Jun 2017 20:11:51 +0000 (22:11 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 27 Jun 2017 20:11:51 +0000 (22:11 +0200)
commite6bf655bc4de1b7f4586e1f5c2fc4978141c3aa3
treedf2a297c5cb4cdd1e16363e9491148b5b035674f
parent28b238225ae618f63cfe5d3d723120960a941da7
patch 8.0.0685: when conversion fails written file may be truncated

Problem:    When making backups is disabled and conversion with iconv fails
            the written file is truncated. (Luo Chen)
Solution:   First try converting the file and write the file only when it did
            not fail. (partly by Christian Brabandt)
src/fileio.c
src/testdir/test_writefile.vim
src/version.c