Author: zooey Date: 2010-07-10 00:12:25 +0200 (Sat, 10 Jul 2010) New Revision: 37449 Changeset: http://dev.haiku-os.org/changeset/37449/haiku Modified: haiku/branches/developer/zooey/posix-locale/src/tests/system/libroot/posix/locale_test.cpp Log: * added comment to why wchar-tests fail with gcc2 Modified: haiku/branches/developer/zooey/posix-locale/src/tests/system/libroot/posix/locale_test.cpp =================================================================== --- haiku/branches/developer/zooey/posix-locale/src/tests/system/libroot/posix/locale_test.cpp 2010-07-09 19:55:30 UTC (rev 37448) +++ haiku/branches/developer/zooey/posix-locale/src/tests/system/libroot/posix/locale_test.cpp 2010-07-09 22:12:25 UTC (rev 37449) @@ -671,7 +671,7 @@ int problemCount = 0; wint_t wc = *text; - for (int i = 0; wc != 0; wc = *++text, ++i) { + for (int i = 0; i < 48; wc = *++text, ++i) { unsigned short classInfo = determineWideFullClassInfo(wc); if (wc != wc_POSIX[i]) { printf("\tPROBLEM: wc for char #%d = %x (expected %x)\n", i, wc, @@ -725,7 +725,7 @@ int problemCount = 0; wint_t wc = *text; - for (int i = 0; wc != 0; wc = *++text, ++i) { + for (int i = 0; i < 48; wc = *++text, ++i) { unsigned short classInfo = determineWideFullClassInfo(wc); if (wc != wc_ISO8859_1[i]) { printf("\tPROBLEM: wc for char #%d = %x (expected %x)\n", i, wc, @@ -779,7 +779,7 @@ int problemCount = 0; wint_t wc = *text; - for (int i = 0; wc != 0; wc = *++text, ++i) { + for (int i = 0; i < 48; wc = *++text, ++i) { unsigned short classInfo = determineWideFullClassInfo(wc); if (wc != wc_ISO8859_15[i]) { printf("\tPROBLEM: wc for char #%d = %x (expected %x)\n", i, wc, @@ -833,7 +833,7 @@ int problemCount = 0; wint_t wc = *text; - for (int i = 0; wc != 0; wc = *++text, ++i) { + for (int i = 0; i < 48; wc = *++text, ++i) { unsigned short classInfo = determineWideFullClassInfo(wc); if (wc != wc_UTF8[i]) { printf("\tPROBLEM: wc for char #%d = %x (expected %x)\n", i, wc, @@ -857,6 +857,8 @@ void test_wctype() { + // all these will fail with gcc2, as that will use utf-8 encoding within + // wchar strings test_posix_wctype(); test_iso8859_1_wctype(); test_iso8859_15_wctype();