Mercurial > vim
comparison src/charset.c @ 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 | fef09eb74832 |
children | 4dba3e4f3b01 |
comparison
equal
deleted
inserted
replaced
11336:ac6a09f23e1b | 11337:f0fbebf19b80 |
---|---|
1731 return c; | 1731 return c; |
1732 } | 1732 } |
1733 if (enc_latin1like) | 1733 if (enc_latin1like) |
1734 return latin1upper[c]; | 1734 return latin1upper[c]; |
1735 } | 1735 } |
1736 if (c < 0x80 && (cmp_flags & CMP_KEEPASCII)) | |
1737 return TOUPPER_ASC(c); | |
1736 return TOUPPER_LOC(c); | 1738 return TOUPPER_LOC(c); |
1737 } | 1739 } |
1738 | 1740 |
1739 int | 1741 int |
1740 vim_tolower(int c) | 1742 vim_tolower(int c) |
1755 return c; | 1757 return c; |
1756 } | 1758 } |
1757 if (enc_latin1like) | 1759 if (enc_latin1like) |
1758 return latin1lower[c]; | 1760 return latin1lower[c]; |
1759 } | 1761 } |
1762 if (c < 0x80 && (cmp_flags & CMP_KEEPASCII)) | |
1763 return TOLOWER_ASC(c); | |
1760 return TOLOWER_LOC(c); | 1764 return TOLOWER_LOC(c); |
1761 } | 1765 } |
1762 #endif | 1766 #endif |
1763 | 1767 |
1764 /* | 1768 /* |