Permalink
Browse files

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)
  • Loading branch information...
brammool committed Jun 27, 2017
1 parent 28b2382 commit e6bf655bc4de1b7f4586e1f5c2fc4978141c3aa3
Showing with 415 additions and 332 deletions.
  1. +395 −332 src/fileio.c
  2. +18 −0 src/testdir/test_writefile.vim
  3. +2 −0 src/version.c
Oops, something went wrong.

0 comments on commit e6bf655

Please sign in to comment.