0
0
mirror of https://github.com/vim/vim.git synced 2025-10-09 06:14:17 -04:00

patch 8.2.0074: Python 3 unicode test someitmes fails

Problem:    Python 3 unicode test someitmes fails.
Solution:   Make 'termencoding' empty.  Correct number of error message.
This commit is contained in:
Bram Moolenaar
2020-01-01 16:18:38 +01:00
parent ea8b7aecab
commit 4b7cdca230
5 changed files with 12 additions and 3 deletions

View File

@@ -1218,7 +1218,7 @@ del_bytes(
// If "count" is negative the caller must be doing something wrong.
if (count < 1)
{
siemsg("E950: Invalid count for del_bytes(): %ld", count);
siemsg("E292: Invalid count for del_bytes(): %ld", count);
return FAIL;
}

View File

@@ -170,11 +170,18 @@ endfunc
func Test_unicode()
" this crashed Vim once
let save_tenc = &tenc
set tenc=
set encoding=utf32
py3 print('hello')
set encoding=debug
py3 print('hello')
set encoding=euc-tw
py3 print('hello')
set encoding=utf8
let &tenc = save_tenc
endfunc

View File

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