aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-01 10:16:25 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-01 10:30:36 -0500
commit5f0d5ec9852cf82c9b865ac2d3cf7f6e131adf4a (patch)
treeb54e119f2565bb40c3794d4d98eadd003fe91432
parenta251b588acb3a561e5da695280774b9b6fbcd0ea (diff)
downloadrneovim-5f0d5ec9852cf82c9b865ac2d3cf7f6e131adf4a.tar.gz
rneovim-5f0d5ec9852cf82c9b865ac2d3cf7f6e131adf4a.tar.bz2
rneovim-5f0d5ec9852cf82c9b865ac2d3cf7f6e131adf4a.zip
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
-rw-r--r--src/nvim/testdir/test_python3.vim9
1 files 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