[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gawk] gcc4.0.0 regression
From: |
John Ellson |
Subject: |
[bug-gawk] gcc4.0.0 regression |
Date: |
Thu, 21 Jul 2011 08:50:49 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc15 Lightning/1.0b3pre Thunderbird/3.1.11 |
The '\' escape behaviour of gsub() has changed in gcc-4.0.0. This is
breaking a ~20year old script in graphviz that converts postscript text
to C strings.
$ rpm -q gawk
gawk-3.1.8-3.fc15.x86_64
$ echo '\\' | gawk '{gsub("\\\\","\\\\",$0); print($0);}'
\\\\
$ rpm -q gawk
gawk-4.0.0-1.fc16.x86_64
$ echo '\\' | gawk '{gsub("\\\\","\\\\",$0); print($0);}'
\\
This problem has also been reported to:
https://bugzilla.redhat.com/show_bug.cgi?id=723878
John
- [bug-gawk] gcc4.0.0 regression,
John Ellson <=