Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit/TEST From Jess Thrysoee: call setlocale so we ca...
details: https://anonhg.NetBSD.org/src/rev/499b7564cfb4
branches: trunk
changeset: 753977:499b7564cfb4
user: christos <christos%NetBSD.org@localhost>
date: Thu Apr 15 00:50:46 2010 +0000
description:
>From Jess Thrysoee: call setlocale so we can test UTF-8
diffstat:
lib/libedit/TEST/tc1.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r cc6ae7e954cf -r 499b7564cfb4 lib/libedit/TEST/tc1.c
--- a/lib/libedit/TEST/tc1.c Thu Apr 15 00:50:03 2010 +0000
+++ b/lib/libedit/TEST/tc1.c Thu Apr 15 00:50:46 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tc1.c,v 1.3 2009/07/17 12:25:52 christos Exp $ */
+/* $NetBSD: tc1.c,v 1.4 2010/04/15 00:50:46 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)test.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: tc1.c,v 1.3 2009/07/17 12:25:52 christos Exp $");
+__RCSID("$NetBSD: tc1.c,v 1.4 2010/04/15 00:50:46 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -57,6 +57,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <dirent.h>
+#include <locale.h>
#include "histedit.h"
@@ -130,6 +131,7 @@
History *hist;
HistEvent ev;
+ (void) setlocale(LC_CTYPE, "");
(void) signal(SIGINT, sig);
(void) signal(SIGQUIT, sig);
(void) signal(SIGHUP, sig);
Home |
Main Index |
Thread Index |
Old Index