Bug 589631
| Summary: | printf format "%.*s" in gawk not working | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Dale James Thompson <yyidth> |
| Component: | gawk | Assignee: | Jan Zeleny <jzeleny> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | David Kutálek <dkutalek> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.0 | CC: | dkutalek, ovasik, yyidth |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | gawk-3.1.7-3.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-07-02 19:06:11 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux major release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Major release. This request is not yet committed for inclusion. Patch is in CVS, build is ready. Switching to MODIFIED. Red Hat Enterprise Linux Beta 2 is now available and should resolve the problem described in this bug report. This report is therefore being closed with a resolution of CURRENTRELEASE. You may reopen this bug report if the solution does not work for you. |
Description of problem: The bug in gawk as reported by 513234 still exists in the Redhat Ent6 gawk package. The patch to fix is checked in the fedora src rpm for gawk-3.1.7-3 and is gawk-3.1.7-prec-utf8.patch. Here a repeat of the original bug report. The "%.*s" format string in printf no longer works. Version-Release number of selected component (if applicable): gawk-3.1.6-5.fc11.i586 How reproducible: Run example from bash command line. The example should remove the last character from the string. Steps to Reproduce: # echo ab123dl|gawk '{printf("%.*s\n",length($0)-1,$0)}' Actual results: ab123dl Expected results: ab123d Additional info: works OK with gawk-3.1.5-14.el5 and previously on fc10