aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-04 01:46:22 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-04 01:51:49 -0500
commitfa9dd9abf3123e9b56c0ec806fee39c0181decda (patch)
tree445a46ab3f1eb7d16a5faff4b3fe6ba7f932ed6f
parent7ef3e2b88024e4f82e32f4c2818ff09a939df24f (diff)
downloadrneovim-fa9dd9abf3123e9b56c0ec806fee39c0181decda.tar.gz
rneovim-fa9dd9abf3123e9b56c0ec806fee39c0181decda.tar.bz2
rneovim-fa9dd9abf3123e9b56c0ec806fee39c0181decda.zip
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) https://github.com/vim/vim/commit/0fdddeeb66bbe326860ddfc573eba42f6487bbda Comment out the encoding change in shared.vim because Neovim always uses utf-8 for internal character encoding.
-rw-r--r--src/nvim/testdir/shared.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/shared.vim b/src/nvim/testdir/shared.vim
index 4f1ddcd7b9..440da67412 100644
--- a/src/nvim/testdir/shared.vim
+++ b/src/nvim/testdir/shared.vim
@@ -291,6 +291,9 @@ func GetVimCommandClean()
let cmd = substitute(cmd, '-u NONE', '--clean', '')
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
" let cmd = 'valgrind --tool=memcheck --leak-check=yes --num-callers=25 --log-file=valgrind ' . cmd