NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/44013: awk fails to parse numeric constants when LC_NUMERIC is set
The following reply was made to PR bin/44013; it has been noted by GNATS.
From: Dominik Zaczkowski <dmz%pro.wp.pl@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: bin/44013: awk fails to parse numeric constants when
LC_NUMERIC is set
Date: Mon, 1 Nov 2010 08:50:36 +0100
On Sat, Oct 30, 2010 at 08:50:04PM +0000, Alexander Nasonov wrote:
> The following reply was made to PR bin/44013; it has been noted by GNATS.
>
> From: Alexander Nasonov <alnsn%yandex.ru@localhost>
> To: gnats-bugs%NetBSD.org@localhost
> Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
> Subject: Re: bin/44013: awk fails to parse numeric constants when
> LC_NUMERIC is set
> Date: Sat, 30 Oct 2010 21:46:27 +0100
>
> > >How-To-Repeat:
> > dominik@kraina-oz$ awk 'BEGIN {print 5 * 0.5}'
> > awk: syntax error at source line 1
> > context is
> > BEGIN {print 5 * >>> 0.5 <<<
> > awk: illegal statement at source line 1
>
> This looks like a duplicate of bin/42320. Would you be able to do
> your test on -current?
> Thanks,
> Alex
>
I've tested this on current, and there is no bug, numeric input with
locale decimal separator also works fine.
# echo '0,5 5,1' | awk '{print $1 + $2 + 0.75}'
6,35
Sorry for duplicate!
Home |
Main Index |
Thread Index |
Old Index