diff --git a/gawk-3.1.5-numflags.patch b/gawk-3.1.5-numflags.patch new file mode 100644 index 0000000..a0ada4b --- /dev/null +++ b/gawk-3.1.5-numflags.patch @@ -0,0 +1,16 @@ +Tue Jul 4 22:43:05 2006 Arnold D. Robbins + + * eval.c (interpret): Node_assign_concat case: Turn off NUMBER and NUMCUR + flags in result. Sheesh. Thanks to for finding + the problem. + +--- gawk-3.1.5/eval.c.numflags 2006-07-10 09:36:26.000000000 +0200 ++++ gawk-3.1.5/eval.c 2006-07-10 09:36:41.000000000 +0200 +@@ -1193,6 +1193,7 @@ + unref(*lhs); + *lhs = make_str_node(nval, l->stlen + r->stlen, ALREADY_MALLOCED); + } ++ (*lhs)->flags &= ~(NUMCUR|NUMBER); + free_temp(r); + + if (after_assign) diff --git a/gawk.spec b/gawk.spec index 5232eff..8f20163 100644 --- a/gawk.spec +++ b/gawk.spec @@ -1,7 +1,7 @@ Summary: The GNU version of the awk text processing utility. Name: gawk Version: 3.1.5 -Release: 8 +Release: 9 License: GPL Group: Applications/Text Source0: ftp://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.bz2 @@ -23,6 +23,8 @@ Patch6: gawk-3.1.5-wconcat.patch Patch7: gawk-3.1.5-internal.patch # 194214 - gawk coredumps on syntax error Patch8: gawk-3.1.5-syntaxerror.patch +# http://lists.gnu.org/archive/html/bug-gnu-utils/2006-07/msg00004.html +Patch9: gawk-3.1.5-numflags.patch %description The gawk packages contains the GNU version of awk, a text processing @@ -90,6 +92,10 @@ fi %{_datadir}/awk %changelog +* Mon Jul 10 2006 Karel Zak 3.1.5-9 +- fix numeric conversion problem (patch by Aharon Robbins) + http://lists.gnu.org/archive/html/bug-gnu-utils/2006-07/msg00004.html + * Fri Jun 23 2006 Karel Zak 3.1.5-8 - fix #194214 - gawk coredumps on syntax error (patch by Aharon Robbins)