diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2017-04-09 09:40:12 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2017-04-10 12:02:26 +0200 |
commit | acc06b0b7b99925d7567d2e79c2f5e88434edae8 (patch) | |
tree | 4f553f11bc0ab6c54d9c00fe3b4037c7c6c51557 /src | |
parent | 4c857dae1169f3b8c7b6a9740f50acfd3c16858d (diff) | |
download | rneovim-acc06b0b7b99925d7567d2e79c2f5e88434edae8.tar.gz rneovim-acc06b0b7b99925d7567d2e79c2f5e88434edae8.tar.bz2 rneovim-acc06b0b7b99925d7567d2e79c2f5e88434edae8.zip |
vim-patch:8.0.0552
Problem: Toupper and tolower don't work properly for Turkish when 'casemap'
is empty. (Bjorn Linse)
Solution: Check the 'casemap' options when deciding how to upper/lower case.
https://github.com/vim/vim/commit/3317d5ebbe8304da82b8088446060afcae0012af
vim-patch:8.0.0553
Problem: Toupper/tolower test with Turkish locale fails on Mac.
Solution: Skip the test on Mac.
https://github.com/vim/vim/commit/9f4de1f5435b900e43e19766da1a5bed4686cf44
vim-patch:8.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.
https://github.com/vim/vim/commit/1cc482069a3407132aeb43a55d6dc284153e79c7
vim-patch:8.0.0555
Problem: Toupper/tolower test fails on OSX without Darwin.
Solution: Skip that part of the test also for OSX. (Kazunobu Kuriyama)
https://github.com/vim/vim/commit/d2381a2cadb9ef359ad5efb916734c635b29bd13
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_normal.vim | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_normal.vim b/src/nvim/testdir/test_normal.vim index a22dca35cc..c529971528 100644 --- a/src/nvim/testdir/test_normal.vim +++ b/src/nvim/testdir/test_normal.vim @@ -1606,6 +1606,40 @@ fun! Test_normal30_changecase() norm! V~ call assert_equal('THIS IS A simple test: äüöss', getline('.')) + " Turkish ASCII turns to multi-byte. On Mac the Turkish locale is available + " but toupper()/tolower() don't do the right thing. + if !has('mac') && !has('osx') + try + lang tr_TR.UTF-8 + set casemap= + call setline(1, 'iI') + 1normal gUU + call assert_equal("\u0130I", getline(1)) + call assert_equal("\u0130I", toupper("iI")) + + call setline(1, 'iI') + 1normal guu + 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 + throw 'Skipped: Turkish locale not available' + endtry + endif + " clean up bw! endfunc |