encoding: Always use "utf-8" as default for &encoding

Preverve the locale-depedency for fileencodings=default
This commit is contained in:
Björn Linse
2015-11-10 22:44:41 +01:00
parent cb62594042
commit 49b06a8f2a
3 changed files with 31 additions and 63 deletions

View File

@@ -798,6 +798,8 @@ EXTERN bool enc_utf8 INIT(= false); /* UTF-8 encoded Unicode */
EXTERN int enc_latin1like INIT(= TRUE); /* 'encoding' is latin1 comp. */
EXTERN int has_mbyte INIT(= 0); /* any multi-byte encoding */
/// Encoding used when 'fencs' is set to "default"
EXTERN char_u *fenc_default INIT(= NULL);
/*
* To speed up BYTELEN() we fill a table with the byte lengths whenever