vim-patch:8.1.1956: screenshot tests may use a different encoding

Problem:    Screenshot tests may use a different encoding. (Dominique Pelle)
Solution:   Always set 'encoding' to "utf-8" when running Vim in a terminal.
            (closes vim/vim#4884)
0fdddeeb66

Comment out the encoding change in shared.vim
because Neovim always uses utf-8 for internal character encoding.
This commit is contained in:
Jan Edmund Lazo 2020-11-04 01:46:22 -05:00
parent 7ef3e2b880
commit fa9dd9abf3
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -291,6 +291,9 @@ func GetVimCommandClean()
let cmd = substitute(cmd, '-u NONE', '--clean', '') let cmd = substitute(cmd, '-u NONE', '--clean', '')
let cmd = substitute(cmd, '--headless', '', '') let cmd = substitute(cmd, '--headless', '', '')
" Force using utf-8, Vim may pick up something else from the environment.
" let cmd ..= ' --cmd "set enc=utf8" '
" Optionally run Vim under valgrind " Optionally run Vim under valgrind
" let cmd = 'valgrind --tool=memcheck --leak-check=yes --num-callers=25 --log-file=valgrind ' . cmd " let cmd = 'valgrind --tool=memcheck --leak-check=yes --num-callers=25 --log-file=valgrind ' . cmd