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:
@@ -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"
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user