Mercurial > vim
diff src/testdir/test_python2.vim @ 23264:f9526a3c9bbf v8.2.2178
patch 8.2.2178: Python 3: non-utf8 character cannot be handled
Commit: https://github.com/vim/vim/commit/2e2f52a4a0fd560d37a11a7383a4d52b63ca6cfc
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 21 16:03:02 2020 +0100
patch 8.2.2178: Python 3: non-utf8 character cannot be handled
Problem: Python 3: non-utf8 character cannot be handled.
Solution: Change the string decode. (Bj?rn Linse, closes https://github.com/vim/vim/issues/1053)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 21 Dec 2020 16:15:05 +0100 |
parents | b545334ae654 |
children | 8feb0450b690 |
line wrap: on
line diff
--- a/src/testdir/test_python2.vim +++ b/src/testdir/test_python2.vim @@ -3775,4 +3775,11 @@ func Test_python_keyboard_interrupt() close! endfunc +func Test_python_non_utf8_string() + smap <Esc>@ <A-@> + python vim.command('redir => _tmp_smaps | smap | redir END') + python vim.eval('_tmp_smaps').splitlines() + sunmap <Esc>@ +endfunc + " vim: shiftwidth=2 sts=2 expandtab