vim-patch:8.2.0070: crash when using Python 3 with "debug" encoding

Problem:    Crash when using Python 3 with "debug" encoding. (Dominique Pelle)
Solution:   Use "euc-jp" whenever enc_dbcs is set.
d518f952f0
This commit is contained in:
Jan Edmund Lazo 2020-01-01 10:16:25 -05:00
parent a251b588ac
commit 5f0d5ec985
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -174,8 +174,13 @@ func Test_Catch_Exception_Message()
endfunc endfunc
func Test_unicode() func Test_unicode()
throw 'skipped: Nvim only supports "utf-8" for "encoding" option'
" this crashed Vim once " this crashed Vim once
" set encoding=utf32 set encoding=utf32
py3 print('hello') py3 print('hello')
" set encoding=utf8 set encoding=debug
py3 print('hello')
set encoding=euc-tw
py3 print('hello')
set encoding=utf8
endfunc endfunc