Bug 179698
Summary: | grep -w broken in multibyte locales | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tim Robbins <tim> | ||||
Component: | grep | Assignee: | Tim Waugh <twaugh> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Mike McLean <mikem> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 2.5.1-53 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 574350 (view as bug list) | Environment: | |||||
Last Closed: | 2006-02-20 14:51:45 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 574350 | ||||||
Attachments: |
|
Description
Tim Robbins
2006-02-02 04:53:43 UTC
Thanks for the report. Corrections: * this is for non-UTF-8 multibyte locales. UTF-8 input works correctly. * FC-3 gives the same output for me (grep-2.5.1-31.4). Created attachment 124869 [details]
Potential fix for grep -w problem
This is a potential fix for the grep -w problem in non-UTF-8 multibyte locales.
It attempts to correctly locate the multibyte character preceeding the matched
string by (slowly) scanning forward from the start of the buffer until it
reaches the match position. Using "last_char" instead of performing this search
seems to be incorrect.
Thanks! Fixed in grep-2.5.1-53. |