Mercurial > vim
comparison src/testdir/test_normal.vim @ 11337:f0fbebf19b80 v8.0.0554
patch 8.0.0554: toupper and tolower don't work properly for Turkish
commit https://github.com/vim/vim/commit/1cc482069a3407132aeb43a55d6dc284153e79c7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 9 13:41:59 2017 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 09 Apr 2017 13:45:03 +0200 |
parents | bc8e3fd275be |
children | 2c655db9e0f6 |
comparison
equal
deleted
inserted
replaced
11336:ac6a09f23e1b | 11337:f0fbebf19b80 |
---|---|
1616 | 1616 |
1617 call setline(1, 'iI') | 1617 call setline(1, 'iI') |
1618 1normal guu | 1618 1normal guu |
1619 call assert_equal("i\u0131", getline(1)) | 1619 call assert_equal("i\u0131", getline(1)) |
1620 call assert_equal("i\u0131", tolower("iI")) | 1620 call assert_equal("i\u0131", tolower("iI")) |
1621 | |
1622 set casemap& | |
1623 call setline(1, 'iI') | |
1624 1normal gUU | |
1625 call assert_equal("II", getline(1)) | |
1626 call assert_equal("II", toupper("iI")) | |
1627 | |
1628 call setline(1, 'iI') | |
1629 1normal guu | |
1630 call assert_equal("ii", getline(1)) | |
1631 call assert_equal("ii", tolower("iI")) | |
1621 | 1632 |
1622 lang en_US.UTF-8 | 1633 lang en_US.UTF-8 |
1623 catch /E197:/ | 1634 catch /E197:/ |
1624 " can't use Turkish locale | 1635 " can't use Turkish locale |
1625 throw 'Skipped: Turkish locale not available' | 1636 throw 'Skipped: Turkish locale not available' |