To: vim_dev@googlegroups.com Subject: Patch 8.1.2003 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.1.2003 Problem: MS-Windows: code page 65001 is not recognized. Solution: Use utf-8 for code page 65001. (Dan Thompson, closes #4902) Files: src/mbyte.c *** ../vim-8.1.2002/src/mbyte.c 2019-09-07 15:03:00.657670286 +0200 --- src/mbyte.c 2019-09-07 16:06:31.465569890 +0200 *************** *** 4468,4475 **** if (acp == 1200) STRCPY(buf, "ucs-2le"); ! else if (acp == 1252) /* cp1252 is used as latin1 */ STRCPY(buf, "latin1"); else sprintf(buf, "cp%ld", acp); --- 4468,4477 ---- if (acp == 1200) STRCPY(buf, "ucs-2le"); ! else if (acp == 1252) // cp1252 is used as latin1 STRCPY(buf, "latin1"); + else if (acp == 65001) + STRCPY(buf, "utf-8"); else sprintf(buf, "cp%ld", acp); *** ../vim-8.1.2002/src/version.c 2019-09-07 15:51:16.094388825 +0200 --- src/version.c 2019-09-07 16:07:28.057448273 +0200 *************** *** 759,760 **** --- 759,762 ---- { /* Add new patch number below this line */ + /**/ + 2003, /**/ -- "You mean there really is an answer?" "Yes! But you're not going to like it!" "Oh do please tell us!" "You're really not going to like it!" "but we MUST know - tell us" "Alright, the answer is...." "yes..." "... is ..." "yes... come on!" "is 42!" (Douglas Adams - The Hitchhiker's Guide to the Galaxy) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///