diff src/testdir/shared.vim @ 17920:233e316c0b5a v8.1.1956

patch 8.1.1956: screenshot tests may use a different encoding Commit: https://github.com/vim/vim/commit/0fdddeeb66bbe326860ddfc573eba42f6487bbda Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 1 15:26:23 2019 +0200 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 01 Sep 2019 15:30:03 +0200
parents f084f846442a
children f6dcf7eabd26
line wrap: on
line diff
--- 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