blob: 1ec07b6fc4ed902e86479256551c9c964ee42a8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
$NetBSD: patch-aa,v 1.2 2011/12/22 04:33:28 dholland Exp $
- newer lex does not define YY_PROTO
- hack around issue with date parsing
--- src/mlex.l.orig 2004-08-13 11:18:23.000000000 +0000
+++ src/mlex.l
@@ -66,7 +66,7 @@
****************************************************************************/
#define EXECUTE(fun) ((fun) ? fun (), 0 : 0)
-#define YY_DECL int mlex_scan YY_PROTO ((void))
+#define YY_DECL int mlex_scan(void)
#define YY_BREAK offset += yyleng; break;
@@ -352,8 +352,14 @@ TEXT_PLAIN_CHARSET [ \t]*text\/plain.*(;
* obsolete one first, and check if it was possible to get
* the date
*/
+ /** FIXME FIXME FIXME:
+ * A more sophisticated Date: parser is needed, the first
+ * call _never_ returns NULL (at least) on *BSD. Therefore
+ * disable support for two digit years in order to NOT
+ * garble all correctly formatted date headers....
+
tmp = strptime (date, "%d %b %y %H:%M:%S", &tm);
- if (tmp == NULL)
+ if (tmp == NULL) */
tmp = strptime (date, "%d %b %Y %H:%M:%S", &tm);
#ifdef HAVE_LOCALE_H
|