diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-12-30 01:52:49 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-12-30 01:52:49 +0000 |
commit | 92f3150912b4d375df827a15d8e929575c71c014 (patch) | |
tree | f638bbe716809fd27621b25c2813a1e9478a88bc /usr.bin/awk/main.c | |
parent | 0f3aec300d9d954add1864f9c69be31ab4f02569 (diff) |
Update to version 20041222; OK deraadt@
Diffstat (limited to 'usr.bin/awk/main.c')
-rw-r--r-- | usr.bin/awk/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/awk/main.c b/usr.bin/awk/main.c index 40ed2624efc..6dc93f9709b 100644 --- a/usr.bin/awk/main.c +++ b/usr.bin/awk/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.12 2002/12/19 21:24:28 millert Exp $ */ +/* $OpenBSD: main.c,v 1.13 2004/12/30 01:52:48 millert Exp $ */ /**************************************************************** Copyright (C) Lucent Technologies 1997 All Rights Reserved @@ -23,7 +23,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ****************************************************************/ -const char *version = "version 20021213"; +const char *version = "version 20041222"; #define DEBUG #include <stdio.h> @@ -60,7 +60,7 @@ int main(int argc, char *argv[]) const char *fs = NULL; setlocale(LC_ALL, ""); - + setlocale(LC_NUMERIC, "C"); /* for parsing cmdline & prog */ cmdname = __progname; if (argc == 1) { fprintf(stderr, "usage: %s [-F fs] [-v var=value] [-safe] " @@ -153,6 +153,7 @@ int main(int argc, char *argv[]) if (!safe) envinit(environ); yyparse(); + setlocale(LC_NUMERIC, ""); /* back to whatever it is locally */ if (fs) *FS = qstring(fs, '\0'); dprintf( ("errorflag=%d\n", errorflag) ); |