diff src/fileio.c @ 4331:d8053e6bf72a v7.3.915

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)
author Bram Moolenaar <bram@vim.org>
date Wed, 24 Apr 2013 16:34:02 +0200
parents dc3efb6d5a08
children 04736b4030ec
line wrap: on
line diff
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1380,6 +1380,8 @@ retry:
 # endif
 			   )
 			{
+			    if (can_retry)
+				goto rewind_retry;
 			    if (conv_error == 0)
 				conv_error = curbuf->b_ml.ml_line_count
 								- linecnt + 1;