commit | f883d9027c750967b115b82de984ee449ab17aa8 | [log] [tgz] |
---|---|---|
author | K.Takata <kentkt@csc.jp> | Sun May 30 18:04:19 2021 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun May 30 18:04:19 2021 +0200 |
tree | 9b023aace09c2f3a253327440f0520db88abf961 | |
parent | e71c0ebe2cee4a4916c49e206733200299e4c065 [diff] [blame] |
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)
diff --git a/src/mbyte.c b/src/mbyte.c index e3d64ba..f3fdc32 100644 --- a/src/mbyte.c +++ b/src/mbyte.c
@@ -4456,7 +4456,7 @@ // 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); }