grep - Bugs: bug #23814, Result wrong in multibyte locale
You are not allowed to post comments on this tracker with your current authentication level.
bug #23814: Result wrong in multibyte locale
Submitter: | Norihirio Tanaka <noritnk> | ||
Submitted: | Fri 11 Jul 2008 05:44:50 AM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | Fixed |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed |
Wed 23 Dec 2009 04:39:01 PM UTC, comment #1: |
Paolo Bonzini <bonzini> |
Fri 11 Jul 2008 05:44:50 AM UTC, original submission:
If a part of multibyte character on a line matches with pattern,
|
Norihirio Tanaka <noritnk> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2010-03-17 | bonzini | Status | None | Fixed | |
Open/Closed | Open | Closed | |||
2008-07-11 | noritnk | Attached File | - | Added test.txt, #16096 | |
Attached File | - | Added pattern.txt, #16097 | |||
Attached File | - | Added grep-2.5.3-mbr.diff, #16098 |
Powered by Savane 3.13-d3ae.
Corresponding source code
Confirmed:
$ echo $'\xa4\xb3\xa4\xb3' | LANG=ja_JP.EUC-JP grep $'\xa4\xb3'
ここ
$ echo $'\xb3\xa4\xa4\xb3' | LANG=ja_JP.EUC-JP grep $'\xa4\xb3'
海こ
$ echo $'\xb3\xa4\xb3\xa4\xa4\xb3' | LANG=ja_JP.EUC-JP grep $'\xa4\xb3'
$
Cannot happen with UTF-8 because of how the encoding is done.