diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-07 16:07:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-07 16:07:47 +0200 |
commit | fa90d70884ee208966b84052080a7d5eeb8ac2d5 (patch) | |
tree | b0a30fe0e78bd7d86263fe1ded994eeeed8acbc8 /src/mbyte.c | |
parent | 9b1cd65d8b063cade214043c39560b289f84ef8b (diff) | |
download | vim-git-fa90d70884ee208966b84052080a7d5eeb8ac2d5.tar.gz |
patch 8.1.2003: MS-Windows: code page 65001 is not recognizedv8.1.2003
Problem: MS-Windows: code page 65001 is not recognized.
Solution: Use utf-8 for code page 65001. (Dan Thompson, closes #4902)
Diffstat (limited to 'src/mbyte.c')
-rw-r--r-- | src/mbyte.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |