Karsten Hopp cf1ebe
To: vim_dev@googlegroups.com
Karsten Hopp cf1ebe
Subject: Patch 7.3.915
Karsten Hopp cf1ebe
Fcc: outbox
Karsten Hopp cf1ebe
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp cf1ebe
Mime-Version: 1.0
Karsten Hopp cf1ebe
Content-Type: text/plain; charset=UTF-8
Karsten Hopp cf1ebe
Content-Transfer-Encoding: 8bit
Karsten Hopp cf1ebe
------------
Karsten Hopp cf1ebe
Karsten Hopp cf1ebe
Patch 7.3.915
Karsten Hopp cf1ebe
Problem:    When reading a file with encoding conversion fails at the end the
Karsten Hopp cf1ebe
	    next encoding in 'fencs' is not used.
Karsten Hopp cf1ebe
Solution:   Retry with another encoding when possible. (Taro Muraoka)
Karsten Hopp cf1ebe
Files:	    src/fileio.c
Karsten Hopp cf1ebe
Karsten Hopp cf1ebe
Karsten Hopp cf1ebe
*** ../vim-7.3.914/src/fileio.c	2013-04-15 12:27:30.000000000 +0200
Karsten Hopp cf1ebe
--- src/fileio.c	2013-04-24 16:16:28.000000000 +0200
Karsten Hopp cf1ebe
***************
Karsten Hopp cf1ebe
*** 1380,1385 ****
Karsten Hopp cf1ebe
--- 1380,1387 ----
Karsten Hopp cf1ebe
  # endif
Karsten Hopp cf1ebe
  			   )
Karsten Hopp cf1ebe
  			{
Karsten Hopp cf1ebe
+ 			    if (can_retry)
Karsten Hopp cf1ebe
+ 				goto rewind_retry;
Karsten Hopp cf1ebe
  			    if (conv_error == 0)
Karsten Hopp cf1ebe
  				conv_error = curbuf->b_ml.ml_line_count
Karsten Hopp cf1ebe
  								- linecnt + 1;
Karsten Hopp cf1ebe
*** ../vim-7.3.914/src/version.c	2013-04-24 15:47:11.000000000 +0200
Karsten Hopp cf1ebe
--- src/version.c	2013-04-24 16:18:48.000000000 +0200
Karsten Hopp cf1ebe
***************
Karsten Hopp cf1ebe
*** 730,731 ****
Karsten Hopp cf1ebe
--- 730,733 ----
Karsten Hopp cf1ebe
  {   /* Add new patch number below this line */
Karsten Hopp cf1ebe
+ /**/
Karsten Hopp cf1ebe
+     915,
Karsten Hopp cf1ebe
  /**/
Karsten Hopp cf1ebe
Karsten Hopp cf1ebe
-- 
Karsten Hopp cf1ebe
hundred-and-one symptoms of being an internet addict:
Karsten Hopp cf1ebe
227. You sleep next to your monitor.  Or on top of it.
Karsten Hopp cf1ebe
Karsten Hopp cf1ebe
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp cf1ebe
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp cf1ebe
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp cf1ebe
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///