From 958b3c5ffb6154b92fce7ecc0380e88e89893438 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Thu, 10 Jul 2014 12:27:56 +0200 Subject: Default 'encoding'-option from latin to utf-8 #935 Normally the default encoding does not have much effect, since it's overridden by the environment. But when it's not (test with "LANG= LC_ALL= C_CTYPE= nvim" and perform ":set encoding?"), utf-8 should be the default encoding for a 21st century editor :). --- src/nvim/option_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/option_defs.h b/src/nvim/option_defs.h index aae4fe86e6..f6b77396d2 100644 --- a/src/nvim/option_defs.h +++ b/src/nvim/option_defs.h @@ -49,7 +49,7 @@ # define ENC_UCSBOM "ucs-bom" /* check for BOM at start of file */ /* default value for 'encoding' */ -# define ENC_DFLT "latin1" +# define ENC_DFLT "utf-8" /* end-of-line style */ #define EOL_UNKNOWN -1 /* not defined yet */ -- cgit