GNU logs - #14613, boring messages


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#14613: Date  -- incorrect invalid date
Resent-From: "Chris F.A. Johnson" <chris@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Thu, 13 Jun 2013 22:26:02 +0000
Resent-Message-ID: <handler.14613.B.13711623382289 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 14613
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: 14613 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-coreutils@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.13711623382289
          (code B ref -1); Thu, 13 Jun 2013 22:26:02 +0000
Received: (at submit) by debbugs.gnu.org; 13 Jun 2013 22:25:38 +0000
Received: from localhost ([127.0.0.1]:42392 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UnFxZ-0000ar-H2
	for submit <at> debbugs.gnu.org; Thu, 13 Jun 2013 18:25:38 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60092)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <chris@HIDDEN>) id 1UnFns-0000I1-09
 for submit <at> debbugs.gnu.org; Thu, 13 Jun 2013 18:15:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <chris@HIDDEN>) id 1UnFnl-0007lM-TH
 for submit <at> debbugs.gnu.org; Thu, 13 Jun 2013 18:15:30 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-99.2 required=5.0 tests=BAYES_50,USER_IN_WHITELIST
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:36447)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <chris@HIDDEN>) id 1UnFnl-0007lI-PS
 for submit <at> debbugs.gnu.org; Thu, 13 Jun 2013 18:15:29 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33574)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <chris@HIDDEN>) id 1UnFnk-0005jV-Ks
 for bug-coreutils@HIDDEN; Thu, 13 Jun 2013 18:15:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <chris@HIDDEN>) id 1UnFnj-0007kw-L5
 for bug-coreutils@HIDDEN; Thu, 13 Jun 2013 18:15:28 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.182]:42086)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <chris@HIDDEN>) id 1UnFnj-0007ko-HL
 for bug-coreutils@HIDDEN; Thu, 13 Jun 2013 18:15:27 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AsoGABK/CFHAAL2V/2dsb2JhbABEtyKHbBdzgl0CHHJLUod2oAuhIo1hgykDlg2BHI8vgxM
X-IPAS-Result: AsoGABK/CFHAAL2V/2dsb2JhbABEtyKHbBdzgl0CHHJLUod2oAuhIo1hgykDlg2BHI8vgxM
X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="16349406"
Received: from 192-0-189-149.cpe.teksavvy.com (HELO cfaj.local)
 ([192.0.189.149])
 by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA;
 13 Jun 2013 18:15:21 -0400
Date: Thu, 13 Jun 2013 18:15:26 -0400 (EDT)
From: "Chris F.A. Johnson" <chris@HIDDEN>
Message-ID: <alpine.DEB.2.02.1306131813120.3196@HIDDEN>
User-Agent: Alpine 2.02 (DEB 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.3 (----)
X-Mailman-Approved-At: Thu, 13 Jun 2013 18:25:35 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.3 (----)


$ date -d '2 June, 2013'
date: invalid date `2 June, 2013'

   This should be accepted, just as 'June 2, 2013' is.

-- 
    Chris F.A. Johnson, <http://cfajohnson.com/>
    Author:
    Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
    Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.503 (Entity 5.503)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: "Chris F.A. Johnson" <chris@HIDDEN>
Subject: bug#14613: Acknowledgement (Date  -- incorrect invalid date)
Message-ID: <handler.14613.B.13711623382289.ack <at> debbugs.gnu.org>
References: <alpine.DEB.2.02.1306131813120.3196@HIDDEN>
X-Gnu-PR-Message: ack 14613
X-Gnu-PR-Package: coreutils
Reply-To: 14613 <at> debbugs.gnu.org
Date: Thu, 13 Jun 2013 22:26:03 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-coreutils@HIDDEN

If you wish to submit further information on this problem, please
send it to 14613 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
14613: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D14613
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#14613: Date  -- incorrect invalid date
Resent-From: Bob Proulx <bob@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Fri, 14 Jun 2013 20:29:02 +0000
Resent-Message-ID: <handler.14613.B14613.137124174124122 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 14613
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: "Chris F.A. Johnson" <chris@HIDDEN>
Cc: 14613 <at> debbugs.gnu.org
Received: via spool by 14613-submit <at> debbugs.gnu.org id=B14613.137124174124122
          (code B ref 14613); Fri, 14 Jun 2013 20:29:02 +0000
Received: (at 14613) by debbugs.gnu.org; 14 Jun 2013 20:29:01 +0000
Received: from localhost ([127.0.0.1]:44741 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UnacG-0006Gz-LD
	for submit <at> debbugs.gnu.org; Fri, 14 Jun 2013 16:29:00 -0400
Received: from joseki.proulx.com ([216.17.153.58]:39346)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bob@HIDDEN>)
 id 1UnacE-0006Gj-6r; Fri, 14 Jun 2013 16:28:58 -0400
Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119])
 by joseki.proulx.com (Postfix) with ESMTP id C9357211DB;
 Fri, 14 Jun 2013 14:28:56 -0600 (MDT)
Received: by hysteria.proulx.com (Postfix, from userid 1000)
 id 768F92DC52; Fri, 14 Jun 2013 14:28:56 -0600 (MDT)
Date: Fri, 14 Jun 2013 14:28:56 -0600
From: Bob Proulx <bob@HIDDEN>
Message-ID: <20130614202856.GA6236@HIDDEN>
References: <alpine.DEB.2.02.1306131813120.3196@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <alpine.DEB.2.02.1306131813120.3196@HIDDEN>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Spam-Score: -0.3 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

severity 14613 wishlist
thanks

Chris F.A. Johnson wrote:
> $ date -d '2 June, 2013'
> date: invalid date `2 June, 2013'
> 
>   This should be accepted, just as 'June 2, 2013' is.

Patches to improve the old date parser would always be considered and
appreciated.  The date parser is an old legacy piece of code and has
many known limitations.

Bob




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 14 Jun 2013 20:29:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 14 16:29:01 2013
Received: from localhost ([127.0.0.1]:44743 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UnacH-0006H1-4Z
	for submit <at> debbugs.gnu.org; Fri, 14 Jun 2013 16:29:01 -0400
Received: from joseki.proulx.com ([216.17.153.58]:39346)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bob@HIDDEN>)
 id 1UnacE-0006Gj-6r; Fri, 14 Jun 2013 16:28:58 -0400
Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119])
 by joseki.proulx.com (Postfix) with ESMTP id C9357211DB;
 Fri, 14 Jun 2013 14:28:56 -0600 (MDT)
Received: by hysteria.proulx.com (Postfix, from userid 1000)
 id 768F92DC52; Fri, 14 Jun 2013 14:28:56 -0600 (MDT)
Date: Fri, 14 Jun 2013 14:28:56 -0600
From: Bob Proulx <bob@HIDDEN>
To: "Chris F.A. Johnson" <chris@HIDDEN>
Subject: Re: bug#14613: Date  -- incorrect invalid date
Message-ID: <20130614202856.GA6236@HIDDEN>
References: <alpine.DEB.2.02.1306131813120.3196@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <alpine.DEB.2.02.1306131813120.3196@HIDDEN>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Spam-Score: -0.3 (/)
X-Debbugs-Envelope-To: control
Cc: 14613 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

severity 14613 wishlist
thanks

Chris F.A. Johnson wrote:
> $ date -d '2 June, 2013'
> date: invalid date `2 June, 2013'
> 
>   This should be accepted, just as 'June 2, 2013' is.

Patches to improve the old date parser would always be considered and
appreciated.  The date parser is an old legacy piece of code and has
many known limitations.

Bob




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#14613: [PATCH] Make parse_datetime (and therefore `date') handle 'DAY MONTH, YEAR'
References: <alpine.DEB.2.02.1306131813120.3196@HIDDEN>
In-Reply-To: <alpine.DEB.2.02.1306131813120.3196@HIDDEN>
Resent-From: Sergio Durigan Junior <sergiodj@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Sat, 27 Jul 2013 07:02:01 +0000
Resent-Message-ID: <handler.14613.B14613.137490850823767 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 14613
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: 14613 <at> debbugs.gnu.org
Received: via spool by 14613-submit <at> debbugs.gnu.org id=B14613.137490850823767
          (code B ref 14613); Sat, 27 Jul 2013 07:02:01 +0000
Received: (at 14613) by debbugs.gnu.org; 27 Jul 2013 07:01:48 +0000
Received: from localhost ([127.0.0.1]:52298 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1V2yVf-0006B9-6J
	for submit <at> debbugs.gnu.org; Sat, 27 Jul 2013 03:01:48 -0400
Received: from mx1.riseup.net ([198.252.153.129]:43561)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <sergiodj@HIDDEN>) id 1V2yVR-00069Q-E7
 for 14613 <at> debbugs.gnu.org; Sat, 27 Jul 2013 03:01:35 -0400
Received: from fulvetta.riseup.net (fulvetta-pn.riseup.net [10.0.1.75])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (Client CN "*.riseup.net", Issuer "Gandi Standard SSL CA" (not verified))
 by mx1.riseup.net (Postfix) with ESMTPS id 7296B40996
 for <14613 <at> debbugs.gnu.org>; Sat, 27 Jul 2013 00:01:32 -0700 (PDT)
Received: from [127.0.0.1] (localhost [127.0.0.1])
 (Authenticated sender: sergiodj@HIDDEN)
 with ESMTPSA id 7B84D634
From: Sergio Durigan Junior <sergiodj@HIDDEN>
X-URL: http://sergiodj.net/blog
Date: Sat, 27 Jul 2013 04:01:28 -0300
Message-ID: <87bo5o8p13.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: clamav-milter 0.97.8 at mx1
X-Virus-Status: Clean
X-Spam-Score: -1.5 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.5 (-)

Hi there,

I have a fix for this issue.  This fix touches Gnulib, but I am sending
it here anyway so you guys can test and make sure it works.

It basically adds a simple production on lib/parse-datetime.y to extend
it in order to correctly handle the proposed date format, i.e., '2 June,
2013'.  It works OK here, but I'd be glad if you could give it a test.
Comments are also obviously welcome.

Thanks,

-- 
Sergio

diff --git a/ChangeLog b/ChangeLog
index 4d73a26..d9d89ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-07-27  Sergio Durigan Junior  <sergiodj@HIDDEN>
+
+	* lib/parse-datetime.y (date): Add production to handle dates like
+	'27 July, 2013'.  Problem reported for coreutils by Chris F.A.
+	Johnson in <http://bugs.gnu.org/14613>.
+
 2013-07-09  Paul Eggert  <eggert@HIDDEN>
 
 	regex: port to --with-included-regex --enable-gcc-warnings non-threaded
diff --git a/lib/parse-datetime.y b/lib/parse-datetime.y
index 4dce7fa..675ba5c 100644
--- a/lib/parse-datetime.y
+++ b/lib/parse-datetime.y
@@ -535,6 +535,13 @@ date:
         pc->month = $2;
         pc->year = $3;
       }
+  | tUNUMBER tMONTH ',' tUNUMBER
+      {
+        /* e.g. 2 June, 2013.  */
+        pc->day = $1.value;
+	pc->month = $2;
+	pc->year = $4;
+      }
   | iso_8601_date
   ;
 




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#14613: [PATCH] Make parse_datetime (and therefore `date') handle 'DAY MONTH, YEAR'
Resent-From: Paul Eggert <eggert@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Sat, 27 Jul 2013 21:46:01 +0000
Resent-Message-ID: <handler.14613.B14613.13749615356995 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 14613
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: Sergio Durigan Junior <sergiodj@HIDDEN>
Cc: 14613 <at> debbugs.gnu.org
Received: via spool by 14613-submit <at> debbugs.gnu.org id=B14613.13749615356995
          (code B ref 14613); Sat, 27 Jul 2013 21:46:01 +0000
Received: (at 14613) by debbugs.gnu.org; 27 Jul 2013 21:45:35 +0000
Received: from localhost ([127.0.0.1]:53353 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1V3CIv-0001oh-VZ
	for submit <at> debbugs.gnu.org; Sat, 27 Jul 2013 17:45:34 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:53079)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eggert@HIDDEN>) id 1V3CIs-0001oG-UG
 for 14613 <at> debbugs.gnu.org; Sat, 27 Jul 2013 17:45:31 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
 by smtp.cs.ucla.edu (Postfix) with ESMTP id C938539E8109;
 Sat, 27 Jul 2013 14:45:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
 by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id C57-YXRHtGBx; Sat, 27 Jul 2013 14:45:24 -0700 (PDT)
Received: from [192.168.0.11] (inv75-3-82-241-119-107.fbx.proxad.net
 [82.241.119.107])
 by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 68D9F39E8008;
 Sat, 27 Jul 2013 14:45:23 -0700 (PDT)
Message-ID: <51F43F6D.9000502@HIDDEN>
Date: Sat, 27 Jul 2013 23:45:17 +0200
From: Paul Eggert <eggert@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux i686;
 rv:17.0) Gecko/20130623 Thunderbird/17.0.7
MIME-Version: 1.0
References: <alpine.DEB.2.02.1306131813120.3196@HIDDEN>
 <87bo5o8p13.fsf@HIDDEN>
In-Reply-To: <87bo5o8p13.fsf@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Spam-Score: -3.8 (---)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.8 (---)

That format is typically considered to be erroneous, e.g.,
<http://www.grammar.com/dates-day-month-year/>, so I'm
not sure parse_datetime should be supporting it.




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#14613: [PATCH] Make parse_datetime (and therefore `date') handle 'DAY MONTH, YEAR'
Resent-From: Sergio Durigan Junior <sergiodj@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Sat, 27 Jul 2013 23:14:02 +0000
Resent-Message-ID: <handler.14613.B14613.137496682519614 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 14613
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: Paul Eggert <eggert@HIDDEN>
Cc: 14613 <at> debbugs.gnu.org
Received: via spool by 14613-submit <at> debbugs.gnu.org id=B14613.137496682519614
          (code B ref 14613); Sat, 27 Jul 2013 23:14:02 +0000
Received: (at 14613) by debbugs.gnu.org; 27 Jul 2013 23:13:45 +0000
Received: from localhost ([127.0.0.1]:53508 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1V3DgG-00056H-On
	for submit <at> debbugs.gnu.org; Sat, 27 Jul 2013 19:13:45 -0400
Received: from mx1.riseup.net ([198.252.153.129]:57282)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <sergiodj@HIDDEN>) id 1V3DgE-000565-JO
 for 14613 <at> debbugs.gnu.org; Sat, 27 Jul 2013 19:13:43 -0400
Received: from fruiteater.riseup.net (fruiteater-pn.riseup.net [10.0.1.74])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (Client CN "*.riseup.net", Issuer "Gandi Standard SSL CA" (not verified))
 by mx1.riseup.net (Postfix) with ESMTPS id ED6A645FB1;
 Sat, 27 Jul 2013 16:13:40 -0700 (PDT)
Received: from [127.0.0.1] (localhost [127.0.0.1])
 (Authenticated sender: sergiodj@HIDDEN)
 with ESMTPSA id 1AA84BF7
From: Sergio Durigan Junior <sergiodj@HIDDEN>
References: <alpine.DEB.2.02.1306131813120.3196@HIDDEN>
 <87bo5o8p13.fsf@HIDDEN> <51F43F6D.9000502@HIDDEN>
X-URL: http://sergiodj.net/blog
Date: Sat, 27 Jul 2013 20:13:34 -0300
In-Reply-To: <51F43F6D.9000502@HIDDEN> (Paul Eggert's message of "Sat, 27
 Jul 2013 23:45:17 +0200")
Message-ID: <m3ehajha01.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: clamav-milter 0.97.8 at mx1
X-Virus-Status: Clean
X-Spam-Score: -1.5 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.5 (-)

On Saturday, July 27 2013, Paul Eggert wrote:

> That format is typically considered to be erroneous, e.g.,
> <http://www.grammar.com/dates-day-month-year/>, so I'm
> not sure parse_datetime should be supporting it.

I wasn't aware parse_datetime followed a defined grammar.  And this
seems to be an English grammar idiosyncrasy, which is definitely not
familiar to me (not a native english speaker).

IMO, I don't really see a problem supporting an "erroneous English
grammar", since parse_datetime should probably not be so strict about it
and adapt to such small cases.

Anyway, just my opinion.

-- 
Sergio





Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.