073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.589
073263
Fcc: outbox
073263
From: Bram Moolenaar <Bram@moolenaar.net>
073263
Mime-Version: 1.0
073263
Content-Type: text/plain; charset=UTF-8
073263
Content-Transfer-Encoding: 8bit
073263
------------
073263
073263
Patch 7.4.589
073263
Problem:    In the MS-Windows console Vim can't handle greek characters when
073263
	    encoding is utf-8.
073263
Solution:   Escape K_NUL. (Yasuhiro Matsumoto)
073263
Files:	    src/os_win32.c
073263
073263
073263
*** ../vim-7.4.588/src/os_win32.c	2014-11-12 16:10:44.254085193 +0100
073263
--- src/os_win32.c	2015-01-20 19:36:59.725188180 +0100
073263
***************
073263
*** 1814,1831 ****
073263
  		if (conv)
073263
  		{
073263
  		    char_u *p = typeahead + typeaheadlen;
073263
- 		    char_u *e = typeahead + TYPEAHEADLEN;
073263
  
073263
! 		    while (*p && p < e)
073263
  		    {
073263
! 			if (*p == K_NUL)
073263
  			{
073263
  			    ++p;
073263
- 			    mch_memmove(p + 1, p, ((size_t)(e - p)) - 1);
073263
- 			    *p = 3;
073263
- 			    ++n;
073263
  			}
073263
- 			++p;
073263
  		    }
073263
  		}
073263
  
073263
--- 1814,1835 ----
073263
  		if (conv)
073263
  		{
073263
  		    char_u *p = typeahead + typeaheadlen;
073263
  
073263
! 		    if (*p != K_NUL)
073263
  		    {
073263
! 			char_u *e = typeahead + TYPEAHEADLEN;
073263
! 
073263
! 			while (*p && p < e)
073263
  			{
073263
+ 			    if (*p == K_NUL)
073263
+ 			    {
073263
+ 				++p;
073263
+ 				mch_memmove(p + 1, p, ((size_t)(e - p)) - 1);
073263
+ 				*p = 3;
073263
+ 				++n;
073263
+ 			    }
073263
  			    ++p;
073263
  			}
073263
  		    }
073263
  		}
073263
  
073263
*** ../vim-7.4.588/src/version.c	2015-01-20 19:30:46.669275579 +0100
073263
--- src/version.c	2015-01-20 19:35:35.774107846 +0100
073263
***************
073263
*** 743,744 ****
073263
--- 743,746 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     589,
073263
  /**/
073263
073263
-- 
073263
hundred-and-one symptoms of being an internet addict:
073263
95. Only communication in your household is through email.
073263
073263
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
073263
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
073263
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
073263
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///