summaryrefslogtreecommitdiff
path: root/src/testdir/test_normal.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-04-09 13:41:59 +0200
committerBram Moolenaar <Bram@vim.org>2017-04-09 13:41:59 +0200
commit1cc482069a3407132aeb43a55d6dc284153e79c7 (patch)
tree704149ab8249608dfd5e6d59ead636b38d533077 /src/testdir/test_normal.vim
parent9f4de1f5435b900e43e19766da1a5bed4686cf44 (diff)
downloadvim-git-1cc482069a3407132aeb43a55d6dc284153e79c7.tar.gz
patch 8.0.0554: toupper and tolower don't work properly for Turkishv8.0.0554
Problem: Toupper and tolower don't work properly for Turkish when 'casemap' contains "keepascii". (Bjorn Linse) Solution: When 'casemap' contains "keepascii" use ASCII toupper/tolower.
Diffstat (limited to 'src/testdir/test_normal.vim')
-rw-r--r--src/testdir/test_normal.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_normal.vim b/src/testdir/test_normal.vim
index aa82992a7..155ddbfb3 100644
--- a/src/testdir/test_normal.vim
+++ b/src/testdir/test_normal.vim
@@ -1619,6 +1619,17 @@ fun! Test_normal30_changecase()
call assert_equal("i\u0131", getline(1))
call assert_equal("i\u0131", tolower("iI"))
+ set casemap&
+ call setline(1, 'iI')
+ 1normal gUU
+ call assert_equal("II", getline(1))
+ call assert_equal("II", toupper("iI"))
+
+ call setline(1, 'iI')
+ 1normal guu
+ call assert_equal("ii", getline(1))
+ call assert_equal("ii", tolower("iI"))
+
lang en_US.UTF-8
catch /E197:/
" can't use Turkish locale