Mercurial > vim
changeset 25577:6b711b01f2ca v8.2.3325
patch 8.2.3325: digraph test fails when LC_ALL is set to "C"
Commit: https://github.com/vim/vim/commit/52eb372a04dfc5d5afef238c1b3c4a8e92020837
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 10 21:39:20 2021 +0200
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 https://github.com/vim/vim/issues/8742)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 10 Aug 2021 21:45:04 +0200 |
parents | 432231e720aa |
children | f370a545a3ab |
files | src/testdir/test_digraph.vim src/version.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_digraph.vim +++ b/src/testdir/test_digraph.vim @@ -557,6 +557,7 @@ endfunc func Test_digraph_get_function_encode() CheckFeature iconv + let testcases = { \'00': '∞', \'aa': 'あ', @@ -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 @@ -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