Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/what Initialize locale on startup.
details: https://anonhg.NetBSD.org/src/rev/aed18fea8ab3
branches: trunk
changeset: 479820:aed18fea8ab3
user: kleink <kleink%NetBSD.org@localhost>
date: Wed Dec 22 14:39:18 1999 +0000
description:
Initialize locale on startup.
diffstat:
usr.bin/what/what.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 63fe1e7bb4cb -r aed18fea8ab3 usr.bin/what/what.c
--- a/usr.bin/what/what.c Wed Dec 22 14:38:12 1999 +0000
+++ b/usr.bin/what/what.c Wed Dec 22 14:39:18 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: what.c,v 1.7 1999/02/22 22:23:10 kleink Exp $ */
+/* $NetBSD: what.c,v 1.8 1999/12/22 14:39:18 kleink Exp $ */
/*
* Copyright (c) 1980, 1988, 1993
@@ -43,9 +43,10 @@
#if 0
static char sccsid[] = "@(#)what.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: what.c,v 1.7 1999/02/22 22:23:10 kleink Exp $");
+__RCSID("$NetBSD: what.c,v 1.8 1999/12/22 14:39:18 kleink Exp $");
#endif /* not lint */
+#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -68,6 +69,8 @@
{
int c;
+ (void)setlocale(LC_ALL, "");
+
matches = sflag = 0;
while ((c = getopt(argc, argv, "s")) != -1) {
switch (c) {
Home |
Main Index |
Thread Index |
Old Index