Mercurial > vim
diff src/option.c @ 31962:4efcb5c68112 v9.0.1313
patch 9.0.1313: some settings use the current codepage instead of 'encoding'
Commit: https://github.com/vim/vim/commit/ce3189d56e867a2ffc077893b62f530d5b09150f
Author: K.Takata <kentkt@csc.jp>
Date: Wed Feb 15 19:13:43 2023 +0000
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 https://github.com/vim/vim/issues/11992)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 15 Feb 2023 20:15:03 +0100 |
parents | b08c410578a5 |
children | ca6bc7c04163 |
line wrap: on
line diff
--- a/src/option.c +++ b/src/option.c @@ -600,6 +600,8 @@ set_init_1(int clean_arg) 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 @@ set_init_1(int clean_arg) didset_options2(); set_init_lang_env(); - set_init_default_encoding(); #ifdef FEAT_MULTI_LANG // Set the default for 'helplang'.