patch 9.0.1313: some settings use the current codepage instead of 'encoding'
Problem: Some settings use the current codepage instead of 'encoding'.
Solution: Adjust how options are initialized. (Ken Takata, closes #11992)
diff --git a/src/option.c b/src/option.c
index 1b581ed..2332f2a 100644
--- a/src/option.c
+++ b/src/option.c
@@ -600,6 +600,8 @@
init_spell_chartab();
#endif
+ set_init_default_encoding();
+
// Expand environment variables and things like "~" for the defaults.
set_init_expand_env();
@@ -618,7 +620,6 @@
didset_options2();
set_init_lang_env();
- set_init_default_encoding();
#ifdef FEAT_MULTI_LANG
// Set the default for 'helplang'.