summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2022-07-25 21:29:17 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2022-07-25 21:29:17 +0000
commit4b3245d6093f6f2a902a146e4c2a0add3f7856f2 (patch)
tree9481c26c8e5d74279a4729bb8be7f81dd2418ed3
parent18bcb3cf48d1889a9d219d7f8c6452ec34d9b5f8 (diff)
Remove test of non-portable implementation details (whether wctype_t
and wctrans_t values are locale-specific) so we can simplify our implementation in libc ok schwarze@
-rw-r--r--regress/lib/libc/locale/uselocale/uselocale.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/regress/lib/libc/locale/uselocale/uselocale.c b/regress/lib/libc/locale/uselocale/uselocale.c
index eb0a0025a93..6d174b232c6 100644
--- a/regress/lib/libc/locale/uselocale/uselocale.c
+++ b/regress/lib/libc/locale/uselocale/uselocale.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uselocale.c,v 1.7 2022/07/25 15:29:21 schwarze Exp $ */
+/* $OpenBSD: uselocale.c,v 1.8 2022/07/25 21:29:16 guenther Exp $ */
/*
* Copyright (c) 2017, 2022 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -315,8 +315,6 @@ child_func(void *arg)
wctyc = wctype_l("upper", _LOCALE_C);
if (wctyc == NULL)
errx(1, "wctype_l(upper, C) == NULL");
- if (wctyg == wctyc)
- errx(1, "wctype global == C");
TEST_R(iswctype, 1, 0x00D0, wctyg); /* Eth */
TEST_R(iswctype_l, 1, 0x00D0, wctyu, _LOCALE_UTF8);
TEST_R(iswctype_l, 0, 0x00D0, wctyc, _LOCALE_C);
@@ -337,8 +335,6 @@ child_func(void *arg)
wctrc = wctrans_l("tolower", _LOCALE_C);
if (wctrc == NULL)
errx(1, "wctrans(tolower, C) == NULL");
- if (wctrg == wctrc)
- errx(1, "wctrans global == C");
TEST_R(towctrans, 0x00FE, 0x00DE, wctrg); /* Thorn */
TEST_R(towctrans_l, 0x00FE, 0x00DE, wctru, _LOCALE_UTF8);
TEST_R(towctrans_l, 0x00DE, 0x00DE, wctrc, _LOCALE_C);