aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-17 19:00:15 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-04-12 21:26:46 +0800
commit0a813ae2914bee748dd55370929214699c97805f (patch)
tree54dbe79eeac261b4fea6deeeb5eb4aa17dbdae93
parent3b0bcb8ad0816e363cdaa7565f0d9ed0702d1d4e (diff)
downloadrneovim-0a813ae2914bee748dd55370929214699c97805f.tar.gz
rneovim-0a813ae2914bee748dd55370929214699c97805f.tar.bz2
rneovim-0a813ae2914bee748dd55370929214699c97805f.zip
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) https://github.com/vim/vim/commit/52eb372a04dfc5d5afef238c1b3c4a8e92020837
-rw-r--r--src/nvim/testdir/test_digraph.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_digraph.vim b/src/nvim/testdir/test_digraph.vim
index 9fecedfd5b..7b6bc940d3 100644
--- a/src/nvim/testdir/test_digraph.vim
+++ b/src/nvim/testdir/test_digraph.vim
@@ -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