0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -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

@@ -127,7 +127,11 @@ typedef enum {
#define ENC_UCSBOM "ucs-bom" // check for BOM at start of file
// default value for 'encoding'
#define ENC_DFLT "latin1"
#ifdef MSWIN
# define ENC_DFLT "utf-8"
#else
# define ENC_DFLT "latin1"
#endif
// end-of-line style
#define EOL_UNKNOWN -1 // not defined yet