summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2021-07-03 12:04:53 +0000
committerschwarze <>2021-07-03 12:04:53 +0000
commite11b2dc91aab6bc54d54c61b141471abd866d596 (patch)
tree5050caa7a630f3c563131a87f5d28f95c4ae5290 /src
parent39519255813e676fc5e573ad0f2748e54f95c4ca (diff)
downloadopenbsd-e11b2dc91aab6bc54d54c61b141471abd866d596.tar.gz
openbsd-e11b2dc91aab6bc54d54c61b141471abd866d596.tar.bz2
openbsd-e11b2dc91aab6bc54d54c61b141471abd866d596.zip
fix a bug that resulted in incomplete testing:
end statements with ';' because ',' isn't enough
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libc/locale/wcrtomb/test_wcrtomb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regress/lib/libc/locale/wcrtomb/test_wcrtomb.c b/src/regress/lib/libc/locale/wcrtomb/test_wcrtomb.c
index 26b21fdd5b..ee0e14b69d 100644
--- a/src/regress/lib/libc/locale/wcrtomb/test_wcrtomb.c
+++ b/src/regress/lib/libc/locale/wcrtomb/test_wcrtomb.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: test_wcrtomb.c,v 1.2 2017/07/27 15:08:37 bluhm Exp $ */ 1/* $OpenBSD: test_wcrtomb.c,v 1.3 2021/07/03 12:04:53 schwarze Exp $ */
2/* 2/*
3 * Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> 3 * Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
4 * 4 *
@@ -60,7 +60,7 @@ main(void)
60 onetest("0x100", 0x100, EILSEQ, NULL); 60 onetest("0x100", 0x100, EILSEQ, NULL);
61 61
62 if (setlocale(LC_CTYPE, "en_US.UTF-8") == NULL) 62 if (setlocale(LC_CTYPE, "en_US.UTF-8") == NULL)
63 errx(1, "setlocale(UTF-8) failed"), 63 errx(1, "setlocale(UTF-8) failed");
64 64
65 onetest("NUL", L'\0', 0, ""); 65 onetest("NUL", L'\0', 0, "");
66 onetest("BEL", L'\a', 0, "\a"); 66 onetest("BEL", L'\a', 0, "\a");
@@ -72,12 +72,12 @@ main(void)
72 onetest("0xd800", 0xd800, EILSEQ, NULL); 72 onetest("0xd800", 0xd800, EILSEQ, NULL);
73 73
74 if (setlocale(LC_CTYPE, "POSIX") == NULL) 74 if (setlocale(LC_CTYPE, "POSIX") == NULL)
75 errx(1, "setlocale(POSIX) failed"), 75 errx(1, "setlocale(POSIX) failed");
76 76
77 onetest("0xff", L'\377', 0, "\377"); 77 onetest("0xff", L'\377', 0, "\377");
78 78
79 if (setlocale(LC_CTYPE, "en_US.UTF-8") == NULL) 79 if (setlocale(LC_CTYPE, "en_US.UTF-8") == NULL)
80 errx(1, "second setlocale(UTF-8) failed"), 80 errx(1, "second setlocale(UTF-8) failed");
81 81
82 onetest("U+13000", 0x13000, 0, "\360\223\200\200"); 82 onetest("U+13000", 0x13000, 0, "\360\223\200\200");
83 83