Problem: Json encoding still fails when encoding is not utf-8.
Solution: Set 'encoding' before :scriptencoding. Run the json test
separately to avoid affecting other tests.
test_channel.res \
test_hardcopy.res \
test_increment.res \
+ test_json.res \
test_langmap.res \
test_perl.res \
test_quickfix.res \
source test_delete.vim
source test_expand.vim
source test_glob2regpat.vim
-source test_json.vim
source test_lispwords.vim
source test_menu.vim
source test_reltime.vim
if !has('multi_byte')
finish
endif
-scriptencoding utf-8
set encoding=utf-8
+scriptencoding utf-8
let s:json1 = '"str\"in\\g"'
let s:var1 = "str\"in\\g"
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1450,
/**/
1449,
/**/