Mercurial > vim
comparison src/optionstr.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 | b0717fcca5eb |
children | ca6bc7c04163 |
comparison
equal
deleted
inserted
replaced
31961:7d8431f21c98 | 31962:4efcb5c68112 |
---|---|
1052 errmsg = e_invalid_argument; | 1052 errmsg = e_invalid_argument; |
1053 } | 1053 } |
1054 } | 1054 } |
1055 | 1055 |
1056 #if defined(MSWIN) | 1056 #if defined(MSWIN) |
1057 // $HOME may have characters in active code page. | 1057 // $HOME, $VIM and $VIMRUNTIME may have characters in active code page. |
1058 if (varp == &p_enc) | 1058 if (varp == &p_enc) |
1059 { | |
1059 init_homedir(); | 1060 init_homedir(); |
1061 init_vimdir(); | |
1062 } | |
1060 #endif | 1063 #endif |
1061 } | 1064 } |
1062 | 1065 |
1063 return errmsg; | 1066 return errmsg; |
1064 } | 1067 } |