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/test_json.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/test_json.vim')
-rw-r--r-- | src/testdir/test_json.vim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/testdir/test_json.vim b/src/testdir/test_json.vim index 589fcb9ed..e14903646 100644 --- a/src/testdir/test_json.vim +++ b/src/testdir/test_json.vim @@ -1,12 +1,9 @@ " Test for JSON functions. -" JSON requires using utf-8. Conversion breaks the asserts, therefore set -" 'encoding' to utf-8. +" JSON requires using utf-8, because conversion breaks the asserts. if !has('multi_byte') finish endif -set encoding=utf-8 -scriptencoding utf-8 let s:json1 = '"str\"in\\g"' let s:var1 = "str\"in\\g" |