diff options
author | K.Takata <kentkt@csc.jp> | 2021-05-30 18:04:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-05-30 18:04:19 +0200 |
commit | f883d9027c750967b115b82de984ee449ab17aa8 (patch) | |
tree | 9b023aace09c2f3a253327440f0520db88abf961 /src/mbyte.c | |
parent | e71c0ebe2cee4a4916c49e206733200299e4c065 (diff) |
patch 8.2.2912: MS-Windows: most users expect using Unicodev8.2.2912
Problem: MS-Windows: most users expect using Unicode.
Solution: Default 'encoding' to utf-8 on MS-Windows. (Ken Takata,
closes #3907)
Diffstat (limited to 'src/mbyte.c')
-rw-r--r-- | src/mbyte.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbyte.c b/src/mbyte.c index e3d64ba01b..f3fdc32e8e 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -4456,7 +4456,7 @@ enc_canonize(char_u *enc) // Use the default encoding as it's found by set_init_1(). r = get_encoding_default(); if (r == NULL) - r = (char_u *)"latin1"; + r = (char_u *)ENC_DFLT; return vim_strsave(r); } |