From 2e2f52a4a0fd560d37a11a7383a4d52b63ca6cfc Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 21 Dec 2020 16:03:02 +0100 Subject: patch 8.2.2178: Python 3: non-utf8 character cannot be handled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Python 3: non-utf8 character cannot be handled. Solution: Change the string decode. (Björn Linse, closes #1053) --- src/testdir/test_python2.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/testdir/test_python2.vim') diff --git a/src/testdir/test_python2.vim b/src/testdir/test_python2.vim index afefd10fe..cf35a50b3 100644 --- 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 @ + python vim.command('redir => _tmp_smaps | smap | redir END') + python vim.eval('_tmp_smaps').splitlines() + sunmap @ +endfunc + " vim: shiftwidth=2 sts=2 expandtab -- cgit v1.2.1