[PATCH] Fix testcase twctype.c when configured --enable-newlib-mb

Marcus Shawcroft marcus.shawcroft@arm.com
Tue Oct 8 11:55:00 GMT 2013


The testcase twctype.c fails the iswprint(0xce2) test when newlib is 
configured and built with --enable-newlib-mb.

Wide character support in newlib was updated to unicode 5.2 by a series 
of patches presented on the list in Feb 2010.  The behaviour of iswprint 
was updated by this patch:

https://sourceware.org/ml/newlib/2010/msg00128.html

Part of the modification involved extending the 0xce0..0xce1 printable 
range to 0xce0..0xce3.  Looking at the unicode 5.2 tables, this change 
looks correct to me.  However the patch did not update the test case 
twctype.c which contains an explicit test for the code point 0xce2 to be 
non printable.  This patch updates the test case to check for 0xce4 to 
be non printable.

OK?

Thanks
/Marcus

2013-10-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>

         * testsuite/newlib.wctype/twctype.c (main): Update
         iswprint(0xce2) test case.
-------------- next part --------------
diff --git a/newlib/testsuite/newlib.wctype/twctype.c b/newlib/testsuite/newlib.wctype/twctype.c
index d206876..95be74d 100644
--- a/newlib/testsuite/newlib.wctype/twctype.c
+++ b/newlib/testsuite/newlib.wctype/twctype.c
@@ -48,7 +48,7 @@ int main()
       CHECK (iswlower(0x03b3));
       CHECK (!iswlower(0x04aa));
       CHECK (iswprint(0x0b13));
-      CHECK (!iswprint(0x0ce2));
+      CHECK (!iswprint(0x0ce4));
       CHECK (iswpunct(0x002d));
       CHECK (!iswpunct(0x0a84));
       CHECK (iswspace(0x000a));


More information about the Newlib mailing list