# HG changeset patch # User Bram Moolenaar # Date 1366814042 -7200 # Node ID d8053e6bf72a555ed34201c6edb55a23b4fc9965 # Parent 17913b23e7bcaf92bf3c00e2c15d7f601eed5ed0 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 --- 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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 915, +/**/ 914, /**/ 913,