Be UTF8 clean.

This commit is contained in:
joerg 2012-03-25 08:17:54 +00:00
parent 0e8643658c
commit 010e9a3d31
3 changed files with 8 additions and 8 deletions

View File

@ -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 char domain[MAXHOSTNAMELEN];
static const char domains[][MAXHOSTNAMELEN] = {
"1234567890",
"abcdefghijklmnopqrst",
"!#¤%&/(..xasS812=!=!(I(!;X;;X.as.dasa=?;,..<>|**^¨",
"!#\xa4%&/(..xasS812=!=!(I(!;X;;X.as.dasa=?;,..<>|**^\xa8",
"--------------------------------------------------------------------"
};

View File

@ -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 char host[MAXHOSTNAMELEN];
static const char hosts[][MAXHOSTNAMELEN] = {
"1234567890",
"abcdefghijklmnopqrst",
"!#¤%&/(..xasS812=!=!(I(!;X;;X.as.dasa=?;,..<>|**^¨",
"!#\xa4%&/(..xasS812=!=!(I(!;X;;X.as.dasa=?;,..<>|**^\xa8",
"--------------------------------------------------------------------"
};

View File

@ -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>
@ -111,7 +111,7 @@ ATF_TC_BODY(strcmp_simple, tc)
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);