From 5f0d5ec9852cf82c9b865ac2d3cf7f6e131adf4a Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Wed, 1 Jan 2020 10:16:25 -0500 Subject: [PATCH] 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. https://github.com/vim/vim/commit/d518f952f0812778758b25139308bcf45df6988c --- src/nvim/testdir/test_python3.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/nvim/testdir/test_python3.vim b/src/nvim/testdir/test_python3.vim index 5268dc9d1e..edd24c7be5 100644 --- a/src/nvim/testdir/test_python3.vim +++ b/src/nvim/testdir/test_python3.vim @@ -174,8 +174,13 @@ func Test_Catch_Exception_Message() endfunc func Test_unicode() + throw 'skipped: Nvim only supports "utf-8" for "encoding" option' " this crashed Vim once - " set encoding=utf32 + set encoding=utf32 py3 print('hello') - " set encoding=utf8 + set encoding=debug + py3 print('hello') + set encoding=euc-tw + py3 print('hello') + set encoding=utf8 endfunc