diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-21 20:33:32 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-21 20:33:32 +0200 |
commit | ac105ed3c420660ddbddc501c97875c48220817e (patch) | |
tree | af1f72494dadb3775100f85e65c8e0e970879e56 /src/testdir/runtest.vim | |
parent | dfd63e30d13fff5603416b6c7e247cebeb003eb0 (diff) | |
download | vim-git-ac105ed3c420660ddbddc501c97875c48220817e.tar.gz |
patch 7.4.2086v7.4.2086
Problem: Using the system default encoding makes tests unpredictable.
Solution: Always use utf-8 or latin1 in the new style tests. Remove setting
encoding and scriptencoding where it is not needed.
Diffstat (limited to 'src/testdir/runtest.vim')
-rw-r--r-- | src/testdir/runtest.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim index 559d5f875..e06e0cbdf 100644 --- a/src/testdir/runtest.vim +++ b/src/testdir/runtest.vim @@ -49,6 +49,14 @@ source setup.vim " This also enables use of line continuation. set nocp viminfo+=nviminfo +" Use utf-8 or latin1 be default, instead of whatever the system default +" happens to be. Individual tests can overrule this at the top of the file. +if has('multi_byte') + set encoding=utf-8 +else + set encoding=latin1 +endif + " Avoid stopping at the "hit enter" prompt set nomore |