commit | e8d9530b0efd8e0efb9e832cd3d70245c61751ab | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Apr 24 16:34:02 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Apr 24 16:34:02 2013 +0200 |
tree | 870274e3fdb404cb7d7c6555588dfe4a597fdb39 | |
parent | 2ab0713279c26f23718a2913e92e22957833fe35 [diff] [blame] |
updated for version 7.3.915 Problem: When reading a file with encoding conversion fails at the end the next encoding in 'fencs' is not used. Solution: Retry with another encoding when possible. (Taro Muraoka)
diff --git a/src/fileio.c b/src/fileio.c index 251d155..46fdea9 100644 --- a/src/fileio.c +++ b/src/fileio.c
@@ -1380,6 +1380,8 @@ # endif ) { + if (can_retry) + goto rewind_retry; if (conv_error == 0) conv_error = curbuf->b_ml.ml_line_count - linecnt + 1;