Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc Be UTF8 clean.
details: https://anonhg.NetBSD.org/src/rev/97937d1a5a88
branches: trunk
changeset: 778412:97937d1a5a88
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Mar 25 08:17:54 2012 +0000
description:
Be UTF8 clean.
diffstat:
tests/lib/libc/gen/t_setdomainname.c | 6 +++---
tests/lib/libc/gen/t_sethostname.c | 6 +++---
tests/lib/libc/string/t_strcmp.c | 4 ++--
3 files changed, 8 insertions(+), 8 deletions(-)
diffs (72 lines):
diff -r 4bc4a85c08e4 -r 97937d1a5a88 tests/lib/libc/gen/t_setdomainname.c
--- a/tests/lib/libc/gen/t_setdomainname.c Sun Mar 25 06:55:19 2012 +0000
+++ b/tests/lib/libc/gen/t_setdomainname.c Sun Mar 25 08:17:54 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_setdomainname.c,v 1.1 2011/06/03 05:42:09 jruoho Exp $ */
+/* $NetBSD: t_setdomainname.c,v 1.2 2012/03/25 08:17:54 joerg Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_setdomainname.c,v 1.1 2011/06/03 05:42:09 jruoho Exp $");
+__RCSID("$NetBSD: t_setdomainname.c,v 1.2 2012/03/25 08:17:54 joerg Exp $");
#include <sys/param.h>
@@ -43,7 +43,7 @@
static const char domains[][MAXHOSTNAMELEN] = {
"1234567890",
"abcdefghijklmnopqrst",
- "!#¤%&/(..xasS812=!=!(I(!;X;;X.as.dasa=?;,..<>|**^¨",
+ "!#\xa4%&/(..xasS812=!=!(I(!;X;;X.as.dasa=?;,..<>|**^\xa8",
"--------------------------------------------------------------------"
};
diff -r 4bc4a85c08e4 -r 97937d1a5a88 tests/lib/libc/gen/t_sethostname.c
--- a/tests/lib/libc/gen/t_sethostname.c Sun Mar 25 06:55:19 2012 +0000
+++ b/tests/lib/libc/gen/t_sethostname.c Sun Mar 25 08:17:54 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_sethostname.c,v 1.2 2011/06/02 12:42:27 jruoho Exp $ */
+/* $NetBSD: t_sethostname.c,v 1.3 2012/03/25 08:17:54 joerg Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_sethostname.c,v 1.2 2011/06/02 12:42:27 jruoho Exp $");
+__RCSID("$NetBSD: t_sethostname.c,v 1.3 2012/03/25 08:17:54 joerg Exp $");
#include <sys/param.h>
@@ -43,7 +43,7 @@
static const char hosts[][MAXHOSTNAMELEN] = {
"1234567890",
"abcdefghijklmnopqrst",
- "!#¤%&/(..xasS812=!=!(I(!;X;;X.as.dasa=?;,..<>|**^¨",
+ "!#\xa4%&/(..xasS812=!=!(I(!;X;;X.as.dasa=?;,..<>|**^\xa8",
"--------------------------------------------------------------------"
};
diff -r 4bc4a85c08e4 -r 97937d1a5a88 tests/lib/libc/string/t_strcmp.c
--- a/tests/lib/libc/string/t_strcmp.c Sun Mar 25 06:55:19 2012 +0000
+++ b/tests/lib/libc/string/t_strcmp.c Sun Mar 25 08:17:54 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_strcmp.c,v 1.3 2011/07/14 07:33:20 jruoho Exp $ */
+/* $NetBSD: t_strcmp.c,v 1.4 2012/03/25 08:17:54 joerg Exp $ */
/*
* Written by J.T. Conklin <jtc%acorntoolworks.com@localhost>
@@ -111,7 +111,7 @@
ATF_CHECK(strcmp(buf1, buf1) == 0);
ATF_CHECK(strcmp(buf2, buf2) == 0);
- ATF_CHECK(strcmp("xöx", "xox") > 0);
+ ATF_CHECK(strcmp("x\xf6x", "xox") > 0);
ATF_CHECK(strcmp("xxx", "xxxyyy") < 0);
ATF_CHECK(strcmp("xxxyyy", "xxx") > 0);
Home |
Main Index |
Thread Index |
Old Index