Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/nawk Better fix for PR/42320 by Takehiko NOZAKI.
details: https://anonhg.NetBSD.org/src/rev/74fa67a8628b
branches: trunk
changeset: 749215:74fa67a8628b
user: christos <christos%NetBSD.org@localhost>
date: Sat Nov 21 17:57:09 2009 +0000
description:
Better fix for PR/42320 by Takehiko NOZAKI.
diffstat:
dist/nawk/main.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diffs (26 lines):
diff -r d2e41cfa0249 -r 74fa67a8628b dist/nawk/main.c
--- a/dist/nawk/main.c Sat Nov 21 17:45:02 2009 +0000
+++ b/dist/nawk/main.c Sat Nov 21 17:57:09 2009 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index