0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

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 #1053)
This commit is contained in:
Bram Moolenaar
2020-12-21 16:03:02 +01:00
parent ef2dff52de
commit 2e2f52a4a0
6 changed files with 34 additions and 9 deletions

View File

@@ -4008,4 +4008,11 @@ func Test_python3_iter_ref()
call assert_equal(1, g:options_iter_ref_count_increase)
endfunc
func Test_python3_non_utf8_string()
smap <Esc>@ <A-@>
py3 vim.command('redir => _tmp_smaps | smap | redir END')
py3 vim.eval('_tmp_smaps').splitlines()
sunmap <Esc>@
endfunc
" vim: shiftwidth=2 sts=2 expandtab