forked from aniani/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 #4884)
This commit is contained in:
@@ -278,6 +278,9 @@ func GetVimCommandClean()
|
||||
let cmd = substitute(cmd, '-u NONE', '--clean', '')
|
||||
let cmd = substitute(cmd, '--not-a-term', '', '')
|
||||
|
||||
" Force using utf-8, Vim may pick up something else from the environment.
|
||||
let cmd ..= ' --cmd "set enc=utf8" '
|
||||
|
||||
" Optionally run Vim under valgrind
|
||||
" let cmd = 'valgrind --tool=memcheck --leak-check=yes --num-callers=25 --log-file=valgrind ' . cmd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user