diff 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
line wrap: on
line diff
--- 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