]> granicus.if.org Git - vim/commitdiff
patch 8.0.1780: test fails because Vim in a terminal uses wrong 'encoding' v8.0.1780
authorBram Moolenaar <Bram@vim.org>
Mon, 30 Apr 2018 16:03:10 +0000 (18:03 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 30 Apr 2018 16:03:10 +0000 (18:03 +0200)
Problem:    Test fails because Vim in a terminal uses wrong 'encoding'.
Solution:   Set encoding in the test where it matters. (James McCoy,
            closes #2847)

src/testdir/test_terminal.vim
src/version.c

index c9d4637155372505dc4818312d666a231894f176..0f723466526c223b68bbbfbbe22f4a3dd3d925f9 100644 (file)
@@ -1011,7 +1011,7 @@ func Test_terminal_dumpwrite_composing()
 
   let text = " a\u0300 e\u0302 o\u0308"
   call writefile([text], 'Xcomposing')
-  let buf = RunVimInTerminal('Xcomposing', {})
+  let buf = RunVimInTerminal('--cmd "set encoding=utf-8" Xcomposing', {})
   call WaitForAssert({-> assert_match(text, term_getline(buf, 1))})
   call term_dumpwrite(buf, 'Xdump')
   let dumpline = readfile('Xdump')[0]
index 1f360869e7e1d664e965d9545b184f2b059ee154..7726f8450b7ef3d56a15efddb6e7c8590c2ecedb 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1780,
 /**/
     1779,
 /**/