| Summary: | gcc-4.0.0 regression in '\' escape handling in gsub() | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | John Ellson <john.ellson> |
| Component: | gawk | Assignee: | Vojtech Vitek <vvitek> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | hripps, vvitek |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-07-21 21:39:50 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Sorry - must have been before my coffee this morning - this is a gawk bug, not gcc |
Description of problem: gcc-4.0.0 regression in '\' escape handling in gsub() gcc-3.1.8 works ok. Version-Release number of selected component (if applicable): gawk-4.0.0-1.fc16.x86_64 How reproducible: 100% Steps to Reproduce: 1. echo '\\' | gawk '{gsub("\\\\","\\\\",$0); print($0);}' 2. 3. Actual results: \\ Expected results: \\\\ Additional info: This breaks the ~20 year old stringize.awk script in graphviz that converts postscript text into C strings. This problem has also been reported by email to bug-gawk