diff src/testdir/test_json.vim @ 8316:058b9e4a291b v7.4.1450

commit https://github.com/vim/vim/commit/1c39102666d2ccb998059bd7ada2d2efa31a11bc Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 28 18:04:00 2016 +0100 patch 7.4.1450 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.
author Christian Brabandt <cb@256bit.org>
date Sun, 28 Feb 2016 18:15:04 +0100
parents 1001ec135d6e
children bec1dcfaa8be
line wrap: on
line diff
--- a/src/testdir/test_json.vim
+++ b/src/testdir/test_json.vim
@@ -5,8 +5,8 @@
 if !has('multi_byte')
   finish
 endif
+set encoding=utf-8
 scriptencoding utf-8
-set encoding=utf-8
 
 let s:json1 = '"str\"in\\g"'
 let s:var1 = "str\"in\\g"