[PATCH 2/7] msvcrt: Handle small dotless i in _towupper_l.
Daniel Lehman
dlehman25 at gmail.com
Sun Feb 10 12:55:47 CST 2019
Signed-off-by: Daniel Lehman <dlehman25 at gmail.com>
---
dlls/msvcrt/tests/string.c | 4 ++--
dlls/msvcrt/wcs.c | 3 +++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/msvcrt/tests/string.c b/dlls/msvcrt/tests/string.c
index 6f936418fa..0d68809b3d 100644
--- a/dlls/msvcrt/tests/string.c
+++ b/dlls/msvcrt/tests/string.c
@@ -3730,10 +3730,10 @@ static void test_SpecialCasing(void)
};
struct test lcases[] = {
{"English", 'i', 'I'}, /* LATIN SMALL LETTER I */
- {"English", 0x0131, 0, TRUE}, /* LATIN SMALL LETTER DOTLESS I */
+ {"English", 0x0131}, /* LATIN SMALL LETTER DOTLESS I */
{"Turkish", 'i', 'I'}, /* LATIN SMALL LETTER I */
- {"Turkish", 0x0131, 0, TRUE}, /* LATIN SMALL LETTER DOTLESS I */
+ {"Turkish", 0x0131}, /* LATIN SMALL LETTER DOTLESS I */
{"German", 0x00DF}, /* LATIN SMALL LETTER SHARP S */
diff --git a/dlls/msvcrt/wcs.c b/dlls/msvcrt/wcs.c
index 28e82ec303..840bea8cba 100644
--- a/dlls/msvcrt/wcs.c
+++ b/dlls/msvcrt/wcs.c
@@ -2491,6 +2491,9 @@ int CDECL MSVCRT__towupper_l(MSVCRT_wint_t c, MSVCRT__locale_t locale)
return c;
}
+ if(c == 0x131) /* special case for small dotless i */
+ return c;
+
return toupperW(c);
}
--
2.17.1
More information about the wine-devel
mailing list