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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201909071408.x87E8mI2011645%40masaka.moolenaar.net.

Raspunde prin e-mail lui