Skip to content

Commit

Permalink
patch 8.2.3325: digraph test fails when LC_ALL is set to "C"
Browse files Browse the repository at this point in the history
Problem:    Digraph test fails when LC_ALL is set to "C".
Solution:   When restoring 'encoding' set it to "utf-8". (closes #8742)
  • Loading branch information
brammool committed Aug 10, 2021
1 parent 917c46a commit 52eb372
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/testdir/test_digraph.vim
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ endfunc

func Test_digraph_get_function_encode()
CheckFeature iconv

let testcases = {
\'00': '∞',
\'aa': 'あ',
Expand All @@ -565,7 +566,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

Expand All @@ -592,4 +593,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
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3325,
/**/
3324,
/**/
Expand Down

0 comments on commit 52eb372

Please sign in to comment.