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:
@@ -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
|
||||
|
Reference in New Issue
Block a user