# HG changeset patch # User Paul Eggert # Date 1086548159 0 # Node ID 033d299cab29a01b6e78912c8a0fd8427a977bcc # Parent 16347793332c6f0602351e5264232b2bed141ba5 * getdate.y (yylex): Allow space between sign and number. diff --git a/lib/ChangeLog b/lib/ChangeLog --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2004-06-06 Paul Eggert + + * getdate.y (yylex): Allow space between sign and number. + Problem reported by Dan Jacobson. + 2004-06-01 Paul Eggert and Jim Meyering diff --git a/lib/getdate.y b/lib/getdate.y --- a/lib/getdate.y +++ b/lib/getdate.y @@ -844,7 +844,8 @@ if (c == '-' || c == '+') { sign = c == '-' ? -1 : 1; - c = *++pc->input; + while (c = *++pc->input, ISSPACE (c)) + continue; if (! ISDIGIT (c)) /* skip the '-' sign */ continue;