mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.0.0553: toupper/tolower test fails on Mac
Problem: Toupper/tolower test with Turkish locale fails on Mac. Solution: Skip the test on Mac.
This commit is contained in:
@@ -1603,25 +1603,28 @@ fun! Test_normal30_changecase()
|
|||||||
norm! V~
|
norm! V~
|
||||||
call assert_equal('THIS IS A simple test: äüöss', getline('.'))
|
call assert_equal('THIS IS A simple test: äüöss', getline('.'))
|
||||||
|
|
||||||
" Turkish ASCII turns to multi-byte.
|
" Turkish ASCII turns to multi-byte. On Mac the Turkish locale is available
|
||||||
try
|
" but toupper()/tolower() don't do the right thing.
|
||||||
lang tr_TR.UTF-8
|
if !has('mac')
|
||||||
set casemap=
|
try
|
||||||
call setline(1, 'iI')
|
lang tr_TR.UTF-8
|
||||||
1normal gUU
|
set casemap=
|
||||||
call assert_equal("\u0130I", getline(1))
|
call setline(1, 'iI')
|
||||||
call assert_equal("\u0130I", toupper("iI"))
|
1normal gUU
|
||||||
|
call assert_equal("\u0130I", getline(1))
|
||||||
|
call assert_equal("\u0130I", toupper("iI"))
|
||||||
|
|
||||||
call setline(1, 'iI')
|
call setline(1, 'iI')
|
||||||
1normal guu
|
1normal guu
|
||||||
call assert_equal("i\u0131", getline(1))
|
call assert_equal("i\u0131", getline(1))
|
||||||
call assert_equal("i\u0131", tolower("iI"))
|
call assert_equal("i\u0131", tolower("iI"))
|
||||||
|
|
||||||
lang en_US.UTF-8
|
lang en_US.UTF-8
|
||||||
catch /E197:/
|
catch /E197:/
|
||||||
" can't use Turkish locale
|
" can't use Turkish locale
|
||||||
throw 'Skipped: Turkish locale not available'
|
throw 'Skipped: Turkish locale not available'
|
||||||
endtry
|
endtry
|
||||||
|
endif
|
||||||
|
|
||||||
" clean up
|
" clean up
|
||||||
bw!
|
bw!
|
||||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
553,
|
||||||
/**/
|
/**/
|
||||||
552,
|
552,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user