comparison src/testdir/test_terminal.vim @ 13816:9b0e4976dac6 v8.0.1780

patch 8.0.1780: test fails because Vim in a terminal uses wrong 'encoding' commit https://github.com/vim/vim/commit/77bfd756a02c3b3150d6c08ddbf89b66362dad8d Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 30 18:03:10 2018 +0200 patch 8.0.1780: test fails because Vim in a terminal uses wrong 'encoding' Problem: Test fails because Vim in a terminal uses wrong 'encoding'. Solution: Set encoding in the test where it matters. (James McCoy, closes #2847)
author Christian Brabandt <cb@256bit.org>
date Mon, 30 Apr 2018 18:15:06 +0200
parents 16a062cf08c2
children 044337cbf854
comparison
equal deleted inserted replaced
13815:a9aa42f1b49b 13816:9b0e4976dac6
1009 set encoding=utf-8 1009 set encoding=utf-8
1010 call assert_equal(1, winnr('$')) 1010 call assert_equal(1, winnr('$'))
1011 1011
1012 let text = " a\u0300 e\u0302 o\u0308" 1012 let text = " a\u0300 e\u0302 o\u0308"
1013 call writefile([text], 'Xcomposing') 1013 call writefile([text], 'Xcomposing')
1014 let buf = RunVimInTerminal('Xcomposing', {}) 1014 let buf = RunVimInTerminal('--cmd "set encoding=utf-8" Xcomposing', {})
1015 call WaitForAssert({-> assert_match(text, term_getline(buf, 1))}) 1015 call WaitForAssert({-> assert_match(text, term_getline(buf, 1))})
1016 call term_dumpwrite(buf, 'Xdump') 1016 call term_dumpwrite(buf, 'Xdump')
1017 let dumpline = readfile('Xdump')[0] 1017 let dumpline = readfile('Xdump')[0]
1018 call assert_match('|à| |ê| |ö', dumpline) 1018 call assert_match('|à| |ê| |ö', dumpline)
1019 1019