Subject: bug#30643: closed (Mention . won't match illegal characters)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 22 Sep 2020 18:58:02 +0000

Your bug report

#30643: Mention . won't match illegal characters

which was filed against the grep package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
30643: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30643
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Mention . won't match illegal characters
From: Paul Eggert <[email-masked]>
To: 積丹尼 Dan Jacobson <[email-masked]>
Cc: [email-masked]
Date: Tue, 22 Sep 2020 11:57:02 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

> $ man grep says
> 
>        The period . matches any single character.
> 
> OK but it should also mention that illegal characters for the current
> locale will never be matched by ".".

This has been done, by adding "It is unspecified whether it matches an encoding 
error" as part of a fix for Bug#30643. Thanks for reporting the problem.

Subject: Mention . won't match illegal characters
From: 積丹尼 Dan Jacobson <[email-masked]>
To: [email-masked]
Date: Wed, 28 Feb 2018 14:30:24 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

$ man grep says

       The period . matches any single character.

OK but it should also mention that illegal characters for the current
locale will never be matched by ".".

$ LC_ALL=C           grep  .東看 x.html|qprint -e
          <p>=E5?=91=E6=9D=B1=E7=9C=8B</p>
$ LC_ALL=zh_TW.UTF-8 grep  .東看 x.html|qprint -e
$

Also mention it on (info "(grep) Fundamental Structure").