vim-patch:8.2.0068: crash when using Python 3 with "utf32" encoding

Problem:    Crash when using Python 3 with "utf32" encoding. (Dominique Pelle)
Solution:   Use "utf-8" whenever enc_utf8 is set. (closes vim/vim#5423)
556684ff71
This commit is contained in:
Jan Edmund Lazo 2019-12-31 23:22:58 -05:00
parent 0301de758b
commit 0f47870d1b
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -172,3 +172,10 @@ func Test_Catch_Exception_Message()
call assert_match('^Vim(.*):.*RuntimeError: TEST$', v:exception )
endtry
endfunc
func Test_unicode()
" this crashed Vim once
" set encoding=utf32
py3 print('hello')
" set encoding=utf8
endfunc