Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
patch 8.0.1780: test fails because Vim in a terminal uses wrong 'enco…
…ding'

Problem:    Test fails because Vim in a terminal uses wrong 'encoding'.
Solution:   Set encoding in the test where it matters. (James McCoy,
            closes #2847)
  • Loading branch information
brammool committed Apr 30, 2018
1 parent 35e802e commit 77bfd75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/testdir/test_terminal.vim
Expand Up @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -761,6 +761,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1780,
/**/
1779,
/**/
Expand Down

0 comments on commit 77bfd75

Please sign in to comment.