1
0
forked from aniani/vim

patch 8.0.0554: toupper and tolower don't work properly for Turkish

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.
This commit is contained in:
Bram Moolenaar
2017-04-09 13:41:59 +02:00
parent 9f4de1f543
commit 1cc482069a
3 changed files with 17 additions and 0 deletions

View File

@@ -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