summaryrefslogtreecommitdiff
path: root/src/mbyte.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-06-13 20:27:36 +0200
committerBram Moolenaar <Bram@vim.org>2021-06-13 20:27:36 +0200
commit5ffefbb35aba2448099314a9e09714d2f3b2b1bd (patch)
treee7a38623964613b43058b65f61aa296ec3432c09 /src/mbyte.c
parent2346a6378483c9871016f9fc821ec5cbea638f13 (diff)
downloadvim-git-5ffefbb35aba2448099314a9e09714d2f3b2b1bd.tar.gz
patch 8.2.2993: 'fileencodings' default value should depend on 'encoding'v8.2.2993
Problem: 'fileencodings' default value should depend on 'encoding'. (Gary Johnson) Solution: When 'encoding' is "utf-8" use a different default value for 'fileencodings'.
Diffstat (limited to 'src/mbyte.c')
-rw-r--r--src/mbyte.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mbyte.c b/src/mbyte.c
index 4b78eee0e..fb0c4820b 100644
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -733,8 +733,7 @@ codepage_invalid:
// When using Unicode, set default for 'fileencodings'.
if (enc_utf8 && !option_was_set((char_u *)"fencs"))
- set_string_option_direct((char_u *)"fencs", -1,
- (char_u *)"ucs-bom,utf-8,default,latin1", OPT_FREE, 0);
+ set_fencs_unicode();
#if defined(HAVE_BIND_TEXTDOMAIN_CODESET) && defined(FEAT_GETTEXT)
// GNU gettext 0.10.37 supports this feature: set the codeset used for