Mercurial > vim
comparison src/testdir/test_python3.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 | b5786cf7c114 |
comparison
equal
deleted
inserted
replaced
23263:fa5052e3f93a | 23264:f9526a3c9bbf |
---|---|
4006 call assert_equal(1, g:dict_iter_ref_count_increase) | 4006 call assert_equal(1, g:dict_iter_ref_count_increase) |
4007 call assert_equal(1, g:bufmap_iter_ref_count_increase) | 4007 call assert_equal(1, g:bufmap_iter_ref_count_increase) |
4008 call assert_equal(1, g:options_iter_ref_count_increase) | 4008 call assert_equal(1, g:options_iter_ref_count_increase) |
4009 endfunc | 4009 endfunc |
4010 | 4010 |
4011 func Test_python3_non_utf8_string() | |
4012 smap <Esc>@ <A-@> | |
4013 py3 vim.command('redir => _tmp_smaps | smap | redir END') | |
4014 py3 vim.eval('_tmp_smaps').splitlines() | |
4015 sunmap <Esc>@ | |
4016 endfunc | |
4017 | |
4011 " vim: shiftwidth=2 sts=2 expandtab | 4018 " vim: shiftwidth=2 sts=2 expandtab |