Better fix for PR/42320 by Takehiko NOZAKI.

This commit is contained in:
christos 2009-11-21 17:57:09 +00:00
parent 7255a0d9d4
commit 052751eb98

8
dist/nawk/main.c vendored
View File

@ -101,9 +101,8 @@ static void fpecatch(int n
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 @@ int main(int argc, char *argv[])
exit(1);
}
(void) setlocale(LC_ALL, "");
lconv = localeconv();
lconv->decimal_point = ".";
#ifdef SA_SIGINFO
{
struct sigaction sa;