From ee65ca81d75e9e59c36fedff25548b2ff61bc33d Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 8 Jan 2015 09:35:14 +0000 Subject: * testsuite/newlib.wctype/twctrans.c (main): Use towlower and towupper. --- newlib/ChangeLog | 4 ++++ newlib/testsuite/newlib.wctype/twctrans.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 3d0de56..7493fc8 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2015-01-08 Renlin Li + + * testsuite/newlib.wctype/twctrans.c (main): Use towlower and towupper. + 2015-01-06 Richard Earnshaw * libc/machine/aarch64/strcpy.S (strcpy): Further performance diff --git a/newlib/testsuite/newlib.wctype/twctrans.c b/newlib/testsuite/newlib.wctype/twctrans.c index a70e001..f8b7b50 100644 --- a/newlib/testsuite/newlib.wctype/twctrans.c +++ b/newlib/testsuite/newlib.wctype/twctrans.c @@ -8,13 +8,13 @@ int main() x = wctrans ("tolower"); CHECK (x != 0); - CHECK (towctrans (L'A', x) == tolower ('A')); - CHECK (towctrans (L'5', x) == tolower ('5')); + CHECK (towctrans (L'A', x) == towlower (L'A')); + CHECK (towctrans (L'5', x) == towlower (L'5')); x = wctrans ("toupper"); CHECK (x != 0); - CHECK (towctrans (L'c', x) == toupper ('c')); - CHECK (towctrans (L'9', x) == toupper ('9')); + CHECK (towctrans (L'c', x) == towupper (L'c')); + CHECK (towctrans (L'9', x) == towupper (L'9')); x = wctrans ("unknown"); CHECK (x == 0); -- cgit v1.1