summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-04-08 19:39:43 +0200
committerBram Moolenaar <Bram@vim.org>2017-04-08 19:39:43 +0200
commit9f4de1f5435b900e43e19766da1a5bed4686cf44 (patch)
tree4bd7ea67b5043048bded43dc644bc0eb8873c96e
parent3317d5ebbe8304da82b8088446060afcae0012af (diff)
downloadvim-git-9f4de1f5435b900e43e19766da1a5bed4686cf44.tar.gz
patch 8.0.0553: toupper/tolower test fails on Macv8.0.0553
Problem: Toupper/tolower test with Turkish locale fails on Mac. Solution: Skip the test on Mac.
-rw-r--r--src/testdir/test_normal.vim41
-rw-r--r--src/version.c2
2 files changed, 24 insertions, 19 deletions
diff --git a/src/testdir/test_normal.vim b/src/testdir/test_normal.vim
index 149afa918..aa82992a7 100644
--- a/src/testdir/test_normal.vim
+++ b/src/testdir/test_normal.vim
@@ -1603,25 +1603,28 @@ fun! Test_normal30_changecase()
norm! V~
call assert_equal('THIS IS A simple test: äüöss', getline('.'))
- " Turkish ASCII turns to multi-byte.
- 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"))
-
- lang en_US.UTF-8
- catch /E197:/
- " can't use Turkish locale
- throw 'Skipped: Turkish locale not available'
- endtry
+ " 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')
+ 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"))
+
+ lang en_US.UTF-8
+ catch /E197:/
+ " can't use Turkish locale
+ throw 'Skipped: Turkish locale not available'
+ endtry
+ endif
" clean up
bw!
diff --git a/src/version.c b/src/version.c
index e37178b8a..9fb32c945 100644
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 553,
+/**/
552,
/**/
551,