|
From: | Hermann Peifer |
Subject: | Re: [bug-gawk] Problem with strftime |
Date: | Fri, 14 Oct 2011 12:59:30 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
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 errorDoes 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. Hermann
[Prev in Thread] | Current Thread | [Next in Thread] |