diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-01 15:26:23 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-01 15:26:23 +0200 |
commit | 0fdddeeb66bbe326860ddfc573eba42f6487bbda (patch) | |
tree | 60edbb51f671f6e6931bfbab49163f10f51c4fd5 /src/testdir/shared.vim | |
parent | 1bc353b6f1b063e189e0cef26f8dc586dcf9161f (diff) |
patch 8.1.1956: screenshot tests may use a different encodingv8.1.1956
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)
Diffstat (limited to 'src/testdir/shared.vim')
-rw-r--r-- | src/testdir/shared.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/shared.vim b/src/testdir/shared.vim index 1032b45a35..cf15a4cc41 100644 --- a/src/testdir/shared.vim +++ b/src/testdir/shared.vim @@ -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 |