diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-12-31 23:22:58 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-12-31 23:24:14 -0500 |
commit | 0f47870d1b5e893857df007901f5f062939a9eb7 (patch) | |
tree | 4da99f2dacad08c4b9996ae3a43adfa9865a36ac /src | |
parent | 0301de758ba90139a4af9edc3993ef438a4d4cd1 (diff) | |
download | rneovim-0f47870d1b5e893857df007901f5f062939a9eb7.tar.gz rneovim-0f47870d1b5e893857df007901f5f062939a9eb7.tar.bz2 rneovim-0f47870d1b5e893857df007901f5f062939a9eb7.zip |
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)
https://github.com/vim/vim/commit/556684ff71e044a642879d759373a7ebc5047fad
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_python3.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_python3.vim b/src/nvim/testdir/test_python3.vim index e64a8fcc47..5268dc9d1e 100644 --- a/src/nvim/testdir/test_python3.vim +++ b/src/nvim/testdir/test_python3.vim @@ -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 |