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/option.h | |
parent | e71c0ebe2cee4a4916c49e206733200299e4c065 (diff) | |
download | vim-git-f883d9027c750967b115b82de984ee449ab17aa8.tar.gz |
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/option.h')
-rw-r--r-- | src/option.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/option.h b/src/option.h index 30053cc6c..7be729a85 100644 --- a/src/option.h +++ b/src/option.h @@ -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 |