1
0
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:
Bram Moolenaar
2019-09-01 15:26:23 +02:00
parent 1bc353b6f1
commit 0fdddeeb66
4 changed files with 12 additions and 7 deletions

View File

@@ -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