From: Bram Moolenaar Date: Sat, 7 Sep 2019 14:07:47 +0000 (+0200) Subject: patch 8.1.2003: MS-Windows: code page 65001 is not recognized X-Git-Tag: v8.1.2003 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa90d70884ee208966b84052080a7d5eeb8ac2d5;p=vim 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 #4902) --- diff --git a/src/mbyte.c b/src/mbyte.c index 808194f79..ff23ab6af 100644 --- 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); diff --git a/src/version.c b/src/version.c index 7f3310e2c..80976779a 100644 --- a/src/version.c +++ b/src/version.c @@ -757,6 +757,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2003, /**/ 2002, /**/