1
0
forked from aniani/vim

patch 8.1.0059: displayed digraph for "ga" wrong with 'encoding' "cp1251"

Problem:    Displayed digraph for "ga" wrong with 'encoding' "cp1251".
Solution:   Convert from 'encoding' to "utf-8" if needed. (closes #3015)
This commit is contained in:
Bram Moolenaar
2018-06-16 17:25:22 +02:00
parent bfa4246768
commit bc5020aa4d
3 changed files with 39 additions and 2 deletions

View File

@@ -465,4 +465,16 @@ func Test_show_digraph()
bwipe!
endfunc
func Test_show_digraph_cp1251()
if !has('multi_byte')
return
endif
new
set encoding=cp1251
call Put_Dig("='")
call assert_equal("\n<\xfa> <|z> <M-z> 250, Hex fa, Oct 372, Digr ='", execute('ascii'))
set encoding=utf-8
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab