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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user