openbsd-ports/textproc/tre/patches/patch-tests_retest_c

33 lines
1007 B
Plaintext
Raw Normal View History

$OpenBSD: patch-tests_retest_c,v 1.2 2009/06/20 20:06:55 kili Exp $
--- tests/retest.c.orig Fri May 22 14:22:44 2009
+++ tests/retest.c Sat Jun 20 15:41:37 2009
@@ -1625,6 +1625,7 @@ main(int argc, char **argv)
+#ifndef __OpenBSD__
/*
* Internationalization tests.
*/
@@ -1632,8 +1633,9 @@ main(int argc, char **argv)
/* This same test with the correct locale is below. */
test_comp("<22><>+", REG_EXTENDED, 0);
test_exec("<22><><EFBFBD>ξޤϡ<DEA4><CFA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", 0, REG_OK, 10, 13, END);
+#endif
-#if !defined(WIN32) && !defined(__OpenBSD__)
+#ifndef WIN32
if (setlocale(LC_CTYPE, "en_US.ISO-8859-1") != NULL)
{
printf("\nTesting LC_CTYPE en_US.ISO-8859-1\n");
@@ -1641,7 +1643,7 @@ main(int argc, char **argv)
test_exec("abCDefGhiJKlmNoPqRStuVwXyz<79><7A><EFBFBD>", 0, REG_OK, 0, 29, END);
}
-#ifdef TRE_MULTIBYTE
+#if defined(TRE_MULTIBYTE) && !defined(__OpenBSD__)
if (setlocale(LC_CTYPE, "ja_JP.eucjp") != NULL)
{
printf("\nTesting LC_CTYPE ja_JP.eucjp\n");