bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] Problem with strftime


From: John Haque
Subject: Re: [bug-gawk] Problem with strftime
Date: Fri, 14 Oct 2011 05:47:34 -0500
User-agent: Mutt/1.4.2.2i

On Thu, Oct 13, 2011 at 12:50:07PM -0700, Jonathan Nichols wrote:
> Hello,
> 
>    I'm running gawk 3.1.6.  The strftime function will crash awk if
> the input is too big.  Here's an example of working input and
> non-working input:
> 
> $ echo 9999999999 | awk '{print strftime("%Y-%m-%d",$1)}'
> 2286-11-20
> $ echo 13159568651306858568 | awk '{print strftime("%Y-%m-%d",$1)}'
> awk: (FILENAME=- FNR=1) fatal error: internal error
> 

Does not crash gawk 4.0. Please, consider upgrading to version 4.0.

Thanks,

John




reply via email to

[Prev in Thread] Current Thread [Next in Thread]