To: vim-dev@vim.org Subject: Patch 6.1.354 (extra) Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.354 (extra, depends on 6.1.333) Problem: MS-Windows 98: Notepad can't paste text copied from Vim when 'encoding' is "utf-8". Solution: Also make CF_TEXT available on the clipboard. (Ron Aaron) Files: src/os_mswin.c *** ../vim61.353/src/os_mswin.c Sun Feb 16 22:28:48 2003 --- src/os_mswin.c Sat Feb 22 15:02:54 2003 *************** *** 1231,1242 **** SetClipboardData(CF_UNICODETEXT, hMemW); hMemW = 0; } - else # endif ! { ! SetClipboardData(CF_TEXT, hMem); ! hMem = 0; ! } } CloseClipboard(); } --- 1233,1243 ---- SetClipboardData(CF_UNICODETEXT, hMemW); hMemW = 0; } # endif ! /* Always use CF_TEXT. On Win98 Notepad won't obtain the ! * CF_UNICODETEXT text, only CF_TEXT. */ ! SetClipboardData(CF_TEXT, hMem); ! hMem = 0; } CloseClipboard(); } *** ../vim61.353/src/version.c Sat Feb 22 14:09:00 2003 --- src/version.c Sun Feb 23 17:12:26 2003 *************** *** 608,609 **** --- 612,615 ---- { /* Add new patch number below this line */ + /**/ + 354, /**/ -- ARTHUR: A scratch? Your arm's off! BLACK KNIGHT: No, it isn't. ARTHUR: Well, what's that then? BLACK KNIGHT: I've had worse. The Quest for the Holy Grail (Monty Python) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///