Skip to content

Commit

Permalink
Default 'encoding'-option from latin to utf-8 neovim#935
Browse files Browse the repository at this point in the history
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 :).
  • Loading branch information
fornwall authored and fmoralesc committed Aug 19, 2014
1 parent 016cfcf commit 4e1440d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nvim/option_defs.h
Expand Up @@ -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 */
Expand Down

0 comments on commit 4e1440d

Please sign in to comment.