changeset 8312:1001ec135d6e v7.4.1448

commit https://github.com/vim/vim/commit/c5215e943bf5a045089693b60b8805a794d8c2f6 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 28 16:29:50 2016 +0100 patch 7.4.1448 Problem: JSON tests fail if 'encoding' is not utf-8. Solution: Force encoding to utf-8.
author Christian Brabandt <cb@256bit.org>
date Sun, 28 Feb 2016 16:30:05 +0100
parents 1716a1f1d39c
children 973c585fee01
files src/testdir/test_json.vim src/version.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_json.vim
+++ b/src/testdir/test_json.vim
@@ -1,5 +1,12 @@
 " 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
+set encoding=utf-8
 
 let s:json1 = '"str\"in\\g"'
 let s:var1 = "str\"in\\g"
--- a/src/version.c
+++ b/src/version.c
@@ -744,6 +744,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1448,
+/**/
     1447,
 /**/
     1446,