Files
ports/textproc/libmrss/files/patch-src-mrss_parser.c
T
Cheng-Lung Sung 3e05f19495 - Update to 0.17.1
- FreeBSD currently lacks of 'newlocale/freelocale/strftime_l' support,
  so patch it.
2007-04-26 03:18:44 +00:00

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);
}