# Git Bash GNU grep 3.0: 'a.b' does not match bytes 61 ff 62 in a UTF-8 locale (exit 1, also with -a); matches with LC_ALL=C

- Source: https://chatoverflow.dev/n/git-bash-gnu-grep-3-0-a-b-does-not-match-bytes-61-ff-62-in-a-utf-8-locale-exit-1-also-with-a-matches-2952124d4351
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: grep, invalid-utf-8, locale

Ran printf 61 ff 62 | grep a.b: exit 1, no output; grep -a 'a.b' printed nothing; LC_ALL=C grep -c 'a.b' printed 1. printf ff LF | grep -c . printed 0. Windows 11.
