0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2912: MS-Windows: most users expect using Unicode

Problem:    MS-Windows: most users expect using Unicode.
Solution:   Default 'encoding' to utf-8 on MS-Windows. (Ken Takata,
            closes #3907)
This commit is contained in:
K.Takata
2021-05-30 18:04:19 +02:00
committed by Bram Moolenaar
parent e71c0ebe2c
commit f883d9027c
6 changed files with 19 additions and 5 deletions

View File

@@ -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);
}