1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2016-07-21 20:33:32 +02:00
parent dfd63e30d1
commit ac105ed3c4
11 changed files with 14 additions and 20 deletions

View File

@@ -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"