1
0
forked from aniani/vim

patch 7.4.1448

Problem:    JSON tests fail if 'encoding' is not utf-8.
Solution:   Force encoding to utf-8.
This commit is contained in:
Bram Moolenaar
2016-02-28 16:29:50 +01:00
parent d6051b5eb8
commit c5215e943b
2 changed files with 9 additions and 0 deletions

View File

@@ -1,5 +1,12 @@
" Test for JSON functions. " Test for JSON functions.
" JSON requires using utf-8. Conversion breaks the asserts, therefore set
" 'encoding' to utf-8.
if !has('multi_byte')
finish
endif
scriptencoding utf-8 scriptencoding utf-8
set encoding=utf-8
let s:json1 = '"str\"in\\g"' let s:json1 = '"str\"in\\g"'
let s:var1 = "str\"in\\g" let s:var1 = "str\"in\\g"

View File

@@ -743,6 +743,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1448,
/**/ /**/
1447, 1447,
/**/ /**/