changeset 18014:82543df649ba v8.1.2003

patch 8.1.2003: MS-Windows: code page 65001 is not recognized Commit: https://github.com/vim/vim/commit/fa90d70884ee208966b84052080a7d5eeb8ac2d5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 7 16:07:47 2019 +0200 patch 8.1.2003: MS-Windows: code page 65001 is not recognized Problem: MS-Windows: code page 65001 is not recognized. Solution: Use utf-8 for code page 65001. (Dan Thompson, closes https://github.com/vim/vim/issues/4902)
author Bram Moolenaar <Bram@vim.org>
date Sat, 07 Sep 2019 16:15:03 +0200
parents 438192d859f3
children 4e43c4aa6563
files src/mbyte.c src/version.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -4468,8 +4468,10 @@ enc_locale(void)
 
     if (acp == 1200)
 	STRCPY(buf, "ucs-2le");
-    else if (acp == 1252)	    /* cp1252 is used as latin1 */
+    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);
 
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2003,
+/**/
     2002,
 /**/
     2001,