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

24 lines
691 B
Plaintext
Raw Normal View History

$OpenBSD: patch-tests_retest_c,v 1.3 2011/04/17 10:07:56 sthen Exp $
--- tests/retest.c.orig Fri May 22 13:22:44 2009
+++ tests/retest.c Sun Apr 17 10:24:01 2011
@@ -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");