mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
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)
This commit is contained in:
@@ -4468,8 +4468,10 @@ enc_locale(void)
|
|||||||
|
|
||||||
if (acp == 1200)
|
if (acp == 1200)
|
||||||
STRCPY(buf, "ucs-2le");
|
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");
|
STRCPY(buf, "latin1");
|
||||||
|
else if (acp == 65001)
|
||||||
|
STRCPY(buf, "utf-8");
|
||||||
else
|
else
|
||||||
sprintf(buf, "cp%ld", acp);
|
sprintf(buf, "cp%ld", acp);
|
||||||
|
|
||||||
|
@@ -757,6 +757,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2003,
|
||||||
/**/
|
/**/
|
||||||
2002,
|
2002,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user