0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

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.
This commit is contained in:
Bram Moolenaar
2020-01-01 17:09:11 +01:00
parent 4b7cdca230
commit 2466aea508
2 changed files with 5 additions and 3 deletions

View File

@@ -170,8 +170,9 @@ endfunc
func Test_unicode() func Test_unicode()
" this crashed Vim once " this crashed Vim once
let save_tenc = &tenc if &tenc != ''
set tenc= throw "Skipped: 'termencoding' is not empty"
endif
set encoding=utf32 set encoding=utf32
py3 print('hello') py3 print('hello')
@@ -183,5 +184,4 @@ func Test_unicode()
py3 print('hello') py3 print('hello')
set encoding=utf8 set encoding=utf8
let &tenc = save_tenc
endfunc endfunc

View File

@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
75,
/**/ /**/
74, 74,
/**/ /**/