- Fix 'grep -Fw' for encodings other than UTF-8 (bug #161700).

This commit is contained in:
Tim Waugh 2005-06-27 11:16:55 +00:00
parent e5829586b5
commit 23c9918dc8
2 changed files with 4 additions and 1 deletions

View File

@ -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)
+ {

View File

@ -92,6 +92,9 @@ fi
%{_mandir}/*/*
%changelog
* Mon Jun 27 2005 Tim Waugh <twaugh@redhat.com>
- Fix 'grep -Fw' for encodings other than UTF-8 (bug #161700).
* Wed Apr 13 2005 Tim Waugh <twaugh@redhat.com>
- Build requires recent pcre-devel (bug #154626).