mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.3325: digraph test fails when LC_ALL is set to "C"
Problem: Digraph test fails when LC_ALL is set to "C".
Solution: When restoring 'encoding' set it to "utf-8". (closes vim/vim#8742)
52eb372a04
This commit is contained in:
parent
3b0bcb8ad0
commit
0a813ae291
@ -548,6 +548,7 @@ endfunc
|
||||
func Test_digraph_get_function_encode()
|
||||
throw 'Skipped: Nvim does not support setting encoding=japan'
|
||||
CheckFeature iconv
|
||||
|
||||
let testcases = {
|
||||
\'00': '∞',
|
||||
\'aa': 'あ',
|
||||
@ -556,7 +557,7 @@ func Test_digraph_get_function_encode()
|
||||
call digraph_set(key, ch)
|
||||
set encoding=japan
|
||||
call assert_equal(iconv(ch, 'utf-8', 'japan'), digraph_get(key))
|
||||
set encoding&
|
||||
set encoding=utf-8
|
||||
endfor
|
||||
endfunc
|
||||
|
||||
@ -583,4 +584,6 @@ func Test_digraph_getlist_function()
|
||||
call assert_equal(digraph_getlist()->len(), digraph_getlist(0)->len())
|
||||
call assert_notequal((digraph_getlist()->len()), digraph_getlist(1)->len())
|
||||
endfunc
|
||||
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
Loading…
Reference in New Issue
Block a user