3e05f19495
- FreeBSD currently lacks of 'newlocale/freelocale/strftime_l' support, so patch it.
19 lines
545 B
C
19 lines
545 B
C
--- src/mrss_parser.c.orig Mon Apr 2 20:55:34 2007
|
|
+++ src/mrss_parser.c Thu Apr 26 10:57:53 2007
|
|
@@ -151,12 +151,9 @@
|
|
char datebuf[256];
|
|
stm.tm_year -= 1900;
|
|
|
|
- if (!data->c_locale
|
|
- && !(data->c_locale = newlocale (LC_ALL_MASK, "C", NULL)))
|
|
- return NULL;
|
|
-
|
|
- strftime_l (datebuf, sizeof (datebuf), "%a, %d %b %Y %H:%M:%S %z", &stm,
|
|
- data->c_locale);
|
|
+ free (datestr);
|
|
+ strftime (datebuf, sizeof (datebuf), "%a, %d %b %Y %H:%M:%S %z",
|
|
+ &stm);
|
|
|
|
return strdup (datebuf);
|
|
}
|