mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 09:56:31 +00:00
vim-patch:8.2.0075: Python 3 unicode test still sometimes fails
Problem: Python 3 unicode test still sometimes fails.
Solution: Skip the test when 'termencoding' is not empty.
2466aea508
This commit is contained in:
@@ -176,8 +176,9 @@ endfunc
|
||||
func Test_unicode()
|
||||
throw 'skipped: Nvim does not support "termencoding" option and only supports "utf-8" for "encoding" option'
|
||||
" this crashed Vim once
|
||||
let save_tenc = &tenc
|
||||
set tenc=
|
||||
if &tenc != ''
|
||||
throw "Skipped: 'termencoding' is not empty"
|
||||
endif
|
||||
|
||||
set encoding=utf32
|
||||
py3 print('hello')
|
||||
@@ -189,5 +190,4 @@ func Test_unicode()
|
||||
py3 print('hello')
|
||||
|
||||
set encoding=utf8
|
||||
let &tenc = save_tenc
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user