diff --git a/gawk-3.1.5-wconcat.patch b/gawk-3.1.5-wconcat.patch index 397ee33..e082f24 100644 --- a/gawk-3.1.5-wconcat.patch +++ b/gawk-3.1.5-wconcat.patch @@ -1,10 +1,16 @@ ---- gawk-3.1.5/eval.c.wconcat 2006-02-10 22:45:26.000000000 +0100 -+++ gawk-3.1.5/eval.c 2006-02-10 22:46:01.000000000 +0100 -@@ -1176,6 +1176,7 @@ +--- gawk-3.1.5/eval.c.wconcat 2006-02-14 09:40:54.000000000 +0100 ++++ gawk-3.1.5/eval.c 2006-02-14 09:43:33.000000000 +0100 +@@ -1176,6 +1176,13 @@ memcpy(l->stptr + l->stlen, r->stptr, r->stlen); l->stlen += r->stlen; l->stptr[l->stlen] = '\0'; -+ l->flags &= ~WSTRCUR; ++#if defined MBS_SUPPORT ++ if (r->wstptr != NULL) ++ free(r->wstptr); ++ r->wstptr = NULL; ++ r->wstlen = 0; ++ r->flags &= ~WSTRCUR; ++#endif /* MBS_SUPPORT */ } else { char *nval; size_t nlen = l->stlen + r->stlen + 2; diff --git a/gawk.spec b/gawk.spec index 3cb948e..752844a 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: 6.1 +Release: 6.2 License: GPL Group: Applications/Text Source0: ftp://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.bz2 @@ -81,6 +81,9 @@ fi %{_datadir}/awk %changelog +* Tue Feb 14 2006 Karel Zak 3.1.5-6.2 +- new version of the gawk-3.1.5-wconcat.patch patch + * Fri Feb 10 2006 Jesse Keating - 3.1.5-6.1 - bump again for double-long bug on ppc(64)