comparison src/option.h @ 24747:7da496081b91 v8.2.2912

patch 8.2.2912: MS-Windows: most users expect using Unicode Commit: https://github.com/vim/vim/commit/f883d9027c750967b115b82de984ee449ab17aa8 Author: K.Takata <kentkt@csc.jp> Date: Sun May 30 18:04:19 2021 +0200 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 30 May 2021 18:15:03 +0200
parents a56f9c2ba51c
children ac88cd21ae88
comparison
equal deleted inserted replaced
24746:648c3fec2504 24747:7da496081b91
125 125
126 // Possible values for 'encoding' 126 // Possible values for 'encoding'
127 #define ENC_UCSBOM "ucs-bom" // check for BOM at start of file 127 #define ENC_UCSBOM "ucs-bom" // check for BOM at start of file
128 128
129 // default value for 'encoding' 129 // default value for 'encoding'
130 #define ENC_DFLT "latin1" 130 #ifdef MSWIN
131 # define ENC_DFLT "utf-8"
132 #else
133 # define ENC_DFLT "latin1"
134 #endif
131 135
132 // end-of-line style 136 // end-of-line style
133 #define EOL_UNKNOWN -1 // not defined yet 137 #define EOL_UNKNOWN -1 // not defined yet
134 #define EOL_UNIX 0 // NL 138 #define EOL_UNIX 0 // NL
135 #define EOL_DOS 1 // CR NL 139 #define EOL_DOS 1 // CR NL