openbsd-ports/textproc/tre/patches/patch-tests_retest_c
sthen 1aeb126efe Remove dependency on libutf8, base locale support is good enough.
Enable one of the tests that was disabled in a patch (another test is
still disabled; this relates to non-utf8 locales and fails in the same
way with libutf8 or base).  ok kili@
2011-04-17 10:07:56 +00:00

24 lines
691 B
Plaintext

$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("機+", REG_EXTENDED, 0);
test_exec("この賞は、機・利便性・セキ", 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");