diff src/ui.c @ 5956:a076237d1c38 v7.4.319

updated for version 7.4.319 Problem: Crash when putting zero bytes on the clipboard. Solution: Do not support the utf8_atom target when not using an Unicode encoding. (Naofumi Honda)
author Bram Moolenaar <bram@vim.org>
date Thu, 12 Jun 2014 13:28:30 +0200
parents 50dbef5e774a
children ef83b423ebf7
line wrap: on
line diff
--- a/src/ui.c
+++ b/src/ui.c
@@ -2324,7 +2324,7 @@ clip_x11_convert_selection_cb(w, sel_ato
     if (       *target != XA_STRING
 #ifdef FEAT_MBYTE
 	    && *target != vimenc_atom
-	    && *target != utf8_atom
+	    && (*target != utf8_atom || !enc_utf8)
 #endif
 	    && *target != vim_atom
 	    && *target != text_atom