Mercurial > vim
comparison src/testdir/runtest.vim @ 9618:81ba6e4eb72b v7.4.2086
commit https://github.com/vim/vim/commit/ac105ed3c420660ddbddc501c97875c48220817e
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 21 20:33:32 2016 +0200
patch 7.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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 21 Jul 2016 20:45:06 +0200 |
parents | f0201deac2a2 |
children | 3e0ab13ddd12 |
comparison
equal
deleted
inserted
replaced
9617:3682c229ac32 | 9618:81ba6e4eb72b |
---|---|
46 source setup.vim | 46 source setup.vim |
47 | 47 |
48 " For consistency run all tests with 'nocompatible' set. | 48 " For consistency run all tests with 'nocompatible' set. |
49 " This also enables use of line continuation. | 49 " This also enables use of line continuation. |
50 set nocp viminfo+=nviminfo | 50 set nocp viminfo+=nviminfo |
51 | |
52 " Use utf-8 or latin1 be default, instead of whatever the system default | |
53 " happens to be. Individual tests can overrule this at the top of the file. | |
54 if has('multi_byte') | |
55 set encoding=utf-8 | |
56 else | |
57 set encoding=latin1 | |
58 endif | |
51 | 59 |
52 " Avoid stopping at the "hit enter" prompt | 60 " Avoid stopping at the "hit enter" prompt |
53 set nomore | 61 set nomore |
54 | 62 |
55 " Output all messages in English. | 63 " Output all messages in English. |