0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

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 #5423)
This commit is contained in:
Bram Moolenaar
2019-12-31 21:59:01 +01:00
parent ef140544f6
commit 556684ff71
3 changed files with 10 additions and 1 deletions

View File

@@ -167,3 +167,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