Fix WITHOUT_ICONV build
There was an unprotected use of nl_langinfo() to determine the order of day vs. month in the generated output. When building without ICONV support, the order will be: month, day.
This commit is contained in:
parent
ab5711797d
commit
c6e0073a42
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=368606
@ -202,9 +202,13 @@ event_print_all(FILE *fp)
|
||||
struct event *e;
|
||||
struct tm tm;
|
||||
char dbuf[80];
|
||||
#ifdef WITH_ICONV
|
||||
static int d_first;
|
||||
|
||||
d_first = (*nl_langinfo(D_MD_ORDER) == 'd');
|
||||
#else
|
||||
#define d_first 0
|
||||
#endif
|
||||
|
||||
while (walkthrough_dates(&e) != 0) {
|
||||
if (e) {
|
||||
|
Loading…
Reference in New Issue
Block a user