[Top][All Lists]
[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 06:06:12 -0500 |
User-agent: |
Mutt/1.4.2.2i |
On Fri, Oct 14, 2011 at 12:59:30PM +0200, Hermann Peifer wrote:
> On 14/10/2011 12:47, John Haque wrote:
> >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.
> >
>
> $ echo 13159568651306858568 | awk '{print strftime("%Y-%m-%d",$1)}'
> awk: cmd. line:1: (FILENAME=- FNR=1) fatal error: internal error
> Aborted
> $ awk --version | head -1
> GNU Awk 4.0.0
>
> I'm on 64-bit Linux.
Hmm! looks like a 64-bit issue.
John
- [bug-gawk] Problem with strftime, Jonathan Nichols, 2011/10/14
- Re: [bug-gawk] Problem with strftime, John Haque, 2011/10/14
- Re: [bug-gawk] Problem with strftime, Hermann Peifer, 2011/10/14
- Re: [bug-gawk] Problem with strftime,
John Haque <=
- Re: [bug-gawk] Problem with strftime, Aharon Robbins, 2011/10/18
- Message not available
- Re: [bug-gawk] Problem with strftime, Hermann Peifer, 2011/10/18
- Re: [bug-gawk] Problem with strftime, Aharon Robbins, 2011/10/21
- Re: [bug-gawk] Problem with strftime, Hermann Peifer, 2011/10/21
- Re: [bug-gawk] Problem with strftime, Aharon Robbins, 2011/10/23