awk: undo locale setting for numbers - or else parsing

can act quite mysteriously
date: add if(ENABLE_LOCALE_SUPPORT)
This commit is contained in:
Denis Vlasenko
2007-01-01 23:53:12 +00:00
parent f782f52c8c
commit 6dc6ebbf44
2 changed files with 7 additions and 1 deletions

View File

@ -212,7 +212,8 @@ format_utc:
}
} else if (opt & DATE_OPT_RFC2822) {
/* Undo busybox.c for date -R */
setlocale(LC_TIME, "C");
if (ENABLE_LOCALE_SUPPORT)
setlocale(LC_TIME, "C");
strcpy(date_fmt, "%a, %d %b %Y %H:%M:%S ");
i = 22;
goto format_utc;