Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/historical/nawk/dist don't switch back LC_NUMERIC a...



details:   https://anonhg.NetBSD.org/src/rev/0753b4c6bb7d
branches:  trunk
changeset: 778016:0753b4c6bb7d
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 12 18:17:12 2012 +0000

description:
don't switch back LC_NUMERIC after parsing the command line, we always want
to format numbers in the C locale.

diffstat:

 external/historical/nawk/dist/main.c |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r cd2eeb286fd2 -r 0753b4c6bb7d external/historical/nawk/dist/main.c
--- a/external/historical/nawk/dist/main.c      Mon Mar 12 18:06:24 2012 +0000
+++ b/external/historical/nawk/dist/main.c      Mon Mar 12 18:17:12 2012 +0000
@@ -211,7 +211,6 @@
        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) );



Home | Main Index | Thread Index | Old Index