NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/47596: parsedate() misparses 'last sunday -1 day'



The following reply was made to PR lib/47596; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: lib/47596: parsedate() misparses 'last sunday -1 day'
Date: Tue, 26 Feb 2013 09:25:01 +0000

 On Mon, Feb 25, 2013 at 08:25:00PM +0000, dsl%netbsd.org@localhost wrote:
  > >Fix:
  > Rewrite the parser so that it modifies the time as it processes the
  > input string (instead of trying to remember the fields and doing
  > the work afterwards).
 
 That's almost always the wrong way.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index