From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#33205: 26.1; unibyte/multibyte missing in rx.el Date: Tue, 30 Oct 2018 19:27:56 +0200 Message-ID: <83pnvrjqec.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1540920675 18322 195.159.176.226 (30 Oct 2018 17:31:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2018 17:31:15 +0000 (UTC) Cc: 33205@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 30 18:31:11 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHXrD-0004hF-8D for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Oct 2018 18:31:11 +0100 Original-Received: from localhost ([::1]:54643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHXtJ-0004eH-P8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Oct 2018 13:33:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHXpE-0001Nr-5C for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 13:29:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHXp7-0002zL-Ub for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 13:29:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51593) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHXp7-0002zH-Qa for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 13:29:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gHXp7-00030v-Lm for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 13:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Oct 2018 17:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33205 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33205-submit@debbugs.gnu.org id=B33205.154092048111503 (code B ref 33205); Tue, 30 Oct 2018 17:29:01 +0000 Original-Received: (at 33205) by debbugs.gnu.org; 30 Oct 2018 17:28:01 +0000 Original-Received: from localhost ([127.0.0.1]:55847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHXo9-0002zO-AC for submit@debbugs.gnu.org; Tue, 30 Oct 2018 13:28:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39779) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHXo7-0002z6-EN for 33205@debbugs.gnu.org; Tue, 30 Oct 2018 13:27:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHXnx-0002HU-5i for 33205@debbugs.gnu.org; Tue, 30 Oct 2018 13:27:54 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42540) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHXnx-0002HN-0f; Tue, 30 Oct 2018 13:27:49 -0400 Original-Received: from [176.228.60.248] (port=1367 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gHXnw-000731-61; Tue, 30 Oct 2018 13:27:48 -0400 In-reply-to: (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Tue, 30 Oct 2018 16:03:28 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151838 Archived-At: > From: Mattias EngdegÄrd > Date: Tue, 30 Oct 2018 16:03:28 +0100 > > (setq s "A\310") > "A\310" > (multibyte-string-p s) > nil > (string-match-p "A[[:nonascii:]]" s) > nil > (string-match-p "A[[:ascii:]]" s) > nil > (string-match-p "A[[:unibyte:]]" s) > nil > (string-match-p "A[[:multibyte:]]" s) > nil > (string-match-p "A." s) > 0 > > What is going on here? ascii/nonascii and unibyte/multibyte are > supposed to be complementary; if both fail, it's because there is > nothing to match. Yet . matches. I think it's a documentation bug: [:unibyte:] matches only ASCII characters. IOW, it tests "unibyteness" in the internal representation (which might be surprising, I know). And [:nonascii:] is only defined for multibyte characters. > (By the way, you may want to fix a trivial typo in a doc string in > rx.el while you are at it: `indian-tow-byte') Done, thanks.