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:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user