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:
@@ -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
|
||||
|
Reference in New Issue
Block a user