0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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)
This commit is contained in:
K.Takata
2023-02-15 19:13:43 +00:00
committed by Bram Moolenaar
parent bc3dc298b3
commit ce3189d56e
7 changed files with 70 additions and 17 deletions

View File

@@ -1054,9 +1054,12 @@ did_set_encoding(char_u **varp, char_u **gvarp, int opt_flags)
}
#if defined(MSWIN)
// $HOME may have characters in active code page.
// $HOME, $VIM and $VIMRUNTIME may have characters in active code page.
if (varp == &p_enc)
{
init_homedir();
init_vimdir();
}
#endif
}