Karsten Hopp 488b3a
To: vim_dev@googlegroups.com
Karsten Hopp 488b3a
Subject: Patch 7.4.319
Karsten Hopp 488b3a
Fcc: outbox
Karsten Hopp 488b3a
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 488b3a
Mime-Version: 1.0
Karsten Hopp 488b3a
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 488b3a
Content-Transfer-Encoding: 8bit
Karsten Hopp 488b3a
------------
Karsten Hopp 488b3a
Karsten Hopp 488b3a
Patch 7.4.319
Karsten Hopp 488b3a
Problem:    Crash when putting zero bytes on the clipboard.
Karsten Hopp 488b3a
Solution:   Do not support the utf8_atom target when not using an Unicode
Karsten Hopp 488b3a
	    encoding. (Naofumi Honda)
Karsten Hopp 488b3a
Files:	    src/ui.c
Karsten Hopp 488b3a
Karsten Hopp 488b3a
Karsten Hopp 488b3a
*** ../vim-7.4.318/src/ui.c	2014-03-23 15:12:29.943264337 +0100
Karsten Hopp 488b3a
--- src/ui.c	2014-06-12 13:25:21.791687853 +0200
Karsten Hopp 488b3a
***************
Karsten Hopp 488b3a
*** 2324,2330 ****
Karsten Hopp 488b3a
      if (       *target != XA_STRING
Karsten Hopp 488b3a
  #ifdef FEAT_MBYTE
Karsten Hopp 488b3a
  	    && *target != vimenc_atom
Karsten Hopp 488b3a
! 	    && *target != utf8_atom
Karsten Hopp 488b3a
  #endif
Karsten Hopp 488b3a
  	    && *target != vim_atom
Karsten Hopp 488b3a
  	    && *target != text_atom
Karsten Hopp 488b3a
--- 2324,2330 ----
Karsten Hopp 488b3a
      if (       *target != XA_STRING
Karsten Hopp 488b3a
  #ifdef FEAT_MBYTE
Karsten Hopp 488b3a
  	    && *target != vimenc_atom
Karsten Hopp 488b3a
! 	    && (*target != utf8_atom || !enc_utf8)
Karsten Hopp 488b3a
  #endif
Karsten Hopp 488b3a
  	    && *target != vim_atom
Karsten Hopp 488b3a
  	    && *target != text_atom
Karsten Hopp 488b3a
*** ../vim-7.4.318/src/version.c	2014-06-12 12:20:50.195541385 +0200
Karsten Hopp 488b3a
--- src/version.c	2014-06-12 13:26:09.147689645 +0200
Karsten Hopp 488b3a
***************
Karsten Hopp 488b3a
*** 736,737 ****
Karsten Hopp 488b3a
--- 736,739 ----
Karsten Hopp 488b3a
  {   /* Add new patch number below this line */
Karsten Hopp 488b3a
+ /**/
Karsten Hopp 488b3a
+     319,
Karsten Hopp 488b3a
  /**/
Karsten Hopp 488b3a
Karsten Hopp 488b3a
-- 
Karsten Hopp 488b3a
FIRST HEAD:  Oh! quick! get the sword out I want to cut his head off.
Karsten Hopp 488b3a
THIRD HEAD:  Oh, cut your own head off.
Karsten Hopp 488b3a
SECOND HEAD: Yes - do us all a favour.
Karsten Hopp 488b3a
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 488b3a
Karsten Hopp 488b3a
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 488b3a
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 488b3a
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 488b3a
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///