Skip to content

Commit 1c39102

Browse files
committed
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.
1 parent 8cc6977 commit 1c39102

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

src/testdir/Make_all.mak

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ NEW_TESTS = test_arglist.res \
176176
test_channel.res \
177177
test_hardcopy.res \
178178
test_increment.res \
179+
test_json.res \
179180
test_langmap.res \
180181
test_perl.res \
181182
test_quickfix.res \

src/testdir/test_alot.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ source test_cursor_func.vim
66
source test_delete.vim
77
source test_expand.vim
88
source test_glob2regpat.vim
9-
source test_json.vim
109
source test_lispwords.vim
1110
source test_menu.vim
1211
source test_reltime.vim

src/testdir/test_json.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
if !has('multi_byte')
66
finish
77
endif
8-
scriptencoding utf-8
98
set encoding=utf-8
9+
scriptencoding utf-8
1010

1111
let s:json1 = '"str\"in\\g"'
1212
let s:var1 = "str\"in\\g"

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,8 @@ static char *(features[]) =
743743

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1450,
746748
/**/
747749
1449,
748750
/**/

0 commit comments

Comments
 (0)