- Fix 'grep -Fw' for encodings other than UTF-8 (bug #161700).
This commit is contained in:
parent
e5829586b5
commit
23c9918dc8
@ -659,7 +659,7 @@
|
||||
+ }
|
||||
+ else
|
||||
+#endif /* MBS_SUPPORT */
|
||||
+ if (beg + len >= buf + size && !WCHAR ((unsigned char) beg[len]))
|
||||
+ if (beg + len >= buf + size || !WCHAR ((unsigned char) beg[len]))
|
||||
+ word_match = 1;
|
||||
+ if (word_match)
|
||||
+ {
|
||||
|
Loading…
Reference in New Issue
Block a user