[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gawk number to string bug
From: |
Andrew J. Schorr |
Subject: |
Re: gawk number to string bug |
Date: |
Fri, 23 Dec 2005 15:57:38 -0500 |
User-agent: |
Mutt/1.4.1i |
On Thu, Dec 22, 2005 at 10:00:05AM -0500, Andrew J. Schorr wrote:
> This works fine. But what if we increase that precision beyond 30?
>
> $ gawk 'BEGIN {printf "%.40d\n",5}'
> gawk: cmd. line:1: fatal error: internal error
> Abort (core dumped)
The attached patch seems to fix the problem, although it might
be desirable to turn the PREPEND macro into a function. Feedback
on that would be appreciated.
If we can agree on this approach, then the next step is to use
snprintf("%.0f") to implement "%d" formatting (using a 2nd dynamically
growing buffer for the initial snprintf rendering)...
Regards,
Andy
format_tree.patch
Description: Text document
- Re: gawk number to string bug, (continued)
- Re: gawk number to string bug, Paul Eggert, 2005/12/20
- Re: gawk number to string bug, Paul Eggert, 2005/12/21
- Re: gawk number to string bug, Andrew J. Schorr, 2005/12/21
- Re: gawk number to string bug, Andrew J. Schorr, 2005/12/21
- Re: gawk number to string bug, Andrew J. Schorr, 2005/12/21
- Re: gawk number to string bug, Paul Eggert, 2005/12/21
- Re: gawk number to string bug, Andrew J. Schorr, 2005/12/22
- Re: gawk number to string bug,
Andrew J. Schorr <=
- Re: gawk number to string bug, Andrew J. Schorr, 2005/12/23
- Re: gawk number to string bug, Andrew J. Schorr, 2005/12/23
- Re: gawk number to string bug, Andrew J. Schorr, 2005/12/23
- Re: gawk number to string bug, Eli Zaretskii, 2005/12/24
- Re: gawk number to string bug, Andrew J. Schorr, 2005/12/24
- Re: gawk number to string bug, Eli Zaretskii, 2005/12/24
- Re: gawk number to string bug, Paul Jarc, 2005/12/24
- Re: gawk number to string bug, Paul Eggert, 2005/12/25
- Message not available
- Re: gawk number to string bug, Jürgen Kahrs, 2005/12/24
- Re: gawk number to string bug, Eli Zaretskii, 2005/12/25