Module Name: src
Committed By: christos
Date: Sat Nov 21 17:57:09 UTC 2009
Modified Files:
src/dist/nawk: main.c
Log Message:
Better fix for PR/42320 by Takehiko NOZAKI.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/dist/nawk/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/dist/nawk/main.c
diff -u src/dist/nawk/main.c:1.10 src/dist/nawk/main.c:1.11
--- src/dist/nawk/main.c:1.10 Sun Nov 15 16:56:06 2009
+++ src/dist/nawk/main.c Sat Nov 21 12:57:09 2009
@@ -101,9 +101,8 @@
int main(int argc, char *argv[])
{
const char *fs = NULL;
- struct lconv *lconv;
- setlocale(LC_CTYPE, "");
+ setlocale(LC_ALL, "");
setlocale(LC_NUMERIC, "C"); /* for parsing cmdline & prog */
cmdname = argv[0];
if (argc == 1) {
@@ -113,11 +112,6 @@
exit(1);
}
- (void) setlocale(LC_ALL, "");
- lconv = localeconv();
- lconv->decimal_point = ".";
-
-
#ifdef SA_SIGINFO
{
struct sigaction sa;