Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/nawk call setlocale(3) on startup
details: https://anonhg.NetBSD.org/src/rev/ea04c8551208
branches: trunk
changeset: 503573:ea04c8551208
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Fri Feb 09 00:56:51 2001 +0000
description:
call setlocale(3) on startup
diffstat:
dist/nawk/main.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (21 lines):
diff -r 0e17ce45327c -r ea04c8551208 dist/nawk/main.c
--- a/dist/nawk/main.c Fri Feb 09 00:56:18 2001 +0000
+++ b/dist/nawk/main.c Fri Feb 09 00:56:51 2001 +0000
@@ -30,6 +30,7 @@
#include <stdlib.h>
#include <string.h>
#include <signal.h>
+#include <locale.h>
#include "awk.h"
#include "awkgram.h"
@@ -60,6 +61,9 @@
fprintf(stderr, "Usage: %s [-f programfile | 'program'] [-Ffieldsep] [-v var=value] [files]\n", cmdname);
exit(1);
}
+
+ (void) setlocale(LC_ALL, "");
+
signal(SIGFPE, fpecatch);
yyin = NULL;
symtab = makesymtab(NSYMTAB);
Home |
Main Index |
Thread Index |
Old Index