From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Greselin Newsgroups: gmane.emacs.bugs Subject: bug#52394: 27.2; Isearch with char folding enabled =?UTF-8?Q?doesn=E2=80=99t?= match equivalent strings Date: Thu, 9 Dec 2021 21:41:33 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e76a3905d2bca34f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31292"; mail-complaints-to="usenet@ciao.gmane.io" To: 52394@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 09 21:43:36 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mvQGM-00080n-Qr for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Dec 2021 21:43:34 +0100 Original-Received: from localhost ([::1]:40378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvQGL-0003uA-FS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Dec 2021 15:43:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvQFq-0003sV-DW for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2021 15:43:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33347) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvQFq-0000Xd-4j for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2021 15:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mvQFq-0001h5-32 for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2021 15:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Greselin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Dec 2021 20:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52394 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16390825366457 (code B ref -1); Thu, 09 Dec 2021 20:43:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Dec 2021 20:42:16 +0000 Original-Received: from localhost ([127.0.0.1]:44893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvQF5-0001g4-M7 for submit@debbugs.gnu.org; Thu, 09 Dec 2021 15:42:16 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:42032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvQF3-0001fu-7K for submit@debbugs.gnu.org; Thu, 09 Dec 2021 15:42:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvQF3-0003ro-1D for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2021 15:42:13 -0500 Original-Received: from [2607:f8b0:4864:20::82a] (port=36359 helo=mail-qt1-x82a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvQF0-0000Sb-J9 for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2021 15:42:12 -0500 Original-Received: by mail-qt1-x82a.google.com with SMTP id t11so6531543qtw.3 for ; Thu, 09 Dec 2021 12:42:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=YF17vJT9CGcvXKjYAlL+fO+cF0YAygOLQ1047XEBffI=; b=cugoJiJNDGxyZS+NMXQFzf63JWkvI2albzTSrrPuD6pcxUxwbXfeHtLhT891IIQdgv B05rgfC1QV/GraMaEjSVPGEz0F4y9XuEupdxYIhFLUmLzFtFvbJHaMwjy0wco8oSx7tC Zum5u8hDEDNK+mRbbBG18ZCSSzltcqFWz1mdCbJowzCLJMXvHrm/SVY7jhrv53GwP0cR Q4RlneJmUwyV3EiCfmJDe2aBQFlm3KJfJpgtbCsVPIs9pLorQI96sR4albZzZUUh6bUH U4buyvbyL7dvyoYI1XrnvyUKG58wlWhDcL7PhETZyr5sqkfywNz382ffCMIl0UFk10Lr bFdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YF17vJT9CGcvXKjYAlL+fO+cF0YAygOLQ1047XEBffI=; b=Bjr+HjN3HS6pEljjpwX+ReVmho8W62P9yDq7/kT3kSZ+Hx9cA/pHZ6p7ok7TDK0krt jqRWyt0yULsTmuahgS6y/O76n4Rx930Bj18nam3TLNsenr89UxyzZUKZv7gnmF3D2ENQ EVCAvNkBvDUYAsJhPS88djxcE3wzPfeVP6fKghQ802jJRnim53JWLDSVu0LNXMXQiGC2 rkf8M7TVgvu0HVVbDfEvOqlygbKIh33HAhIYEU06pfuvukS+O8yVq7apHK1IVasw6IGC yYDhjlXSl8H9f9qR+W8toQ0tDoTdFn3IjumTbStVXHNasAaSqV7gmUX69UF3U3vbW26W zZLg== X-Gm-Message-State: AOAM531JPY8nyVxaD72kY1X1MYM25E6RbRy2yWkRIV2dYvUxJI2tt68q 6lI9vWLcL1yGIW1anwFZN3oYgxYlJuQ3HNzfh0FVi0CjHvA= X-Google-Smtp-Source: ABdhPJwXcCn2x1s3il6PUI9VyAHD/quj1nvzKD9RJVRVH/fqM/eeVVp4FMFT/K+eNkq1/zCvazHrtuMhpba9jA68SOo= X-Received: by 2002:a05:622a:1350:: with SMTP id w16mr20685585qtk.394.1639082529088; Thu, 09 Dec 2021 12:42:09 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::82a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::82a; envelope-from=greselin.andrea@gmail.com; helo=mail-qt1-x82a.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:222021 Archived-At: --000000000000e76a3905d2bca34f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Steps to reproduce: Launch `emacs -Q`, paste these four lines on a buffer aaaaaaaaa'aaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaa'aaaaaaaaaaaaaaaaaaa'aaaaaaaaaa aaaaaaaaa=E2=80=99aaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaa=E2=80=99aaaaaaaaaaaaaaa= aaaa=E2=80=99aaaaaaaaaa nnnnnnnnn'nnnnnnnnnnnnnnnnnnnnnnnnnnnn nnnn'nnnnnnnnnnnnnnnnnnn'nnnnnnnnnn nnnnnnnnn=E2=80=99nnnnnnnnnnnnnnnnnnnnnnnnnnnn nnnn=E2=80=99nnnnnnnnnnnnnnn= nnnn=E2=80=99nnnnnnnnnn Search for the first one with char folding enabled. In my system Emacs doesn=E2=80=99t match the second line. It matches after I hit =E2=80=98C-M-= d=E2=80=99 to delete the last character from the search query. If you search with char folding enabled for the third line then it does match the fourth, even though the third and the fourth lines are just copies of the first two with the a=E2=80=99s replaced by n=E2=80=99s. All the best, Andrea In GNU Emacs 27.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.30, cairo version 1.17.4) of 2021-08-07 built on buildvm-x86-29.iad2.fedoraproject.org Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 System Description: Fedora 34 (Workstation Edition) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... [2 times] Configured using: 'configure --build=3Dx86_64-redhat-linux-gnu --host=3Dx86_64-redhat-linux-gnu --program-prefix=3D --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64 --libexecdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/var/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=3Dgtk3 --with-gpm=3Dno --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json build_alias=3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-redhat-linux-gnu CC=3Dgcc 'CFLAGS=3D-DMAIL_USE_LOCKF -= O2 -flto=3Dauto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=3D-Wl,-z,relro PKG_CONFIG_PATH=3D:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER GMP Important settings: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 45893 6606) (symbols 48 6007 1) (strings 32 15796 1378) (string-bytes 1 518486) (vectors 16 10238) (vector-slots 8 133527 10860) (floats 8 20 35) (intervals 56 271 0) (buffers 1000 12)) --000000000000e76a3905d2bca34f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Steps to reproduce:

Launch `emacs -Q`, paste these = four lines on a buffer

aaaaaaaaa'aaaaaaaaaaaaaaaaaaaaaaaaaaaa aa= aa'aaaaaaaaaaaaaaaaaaa'aaaaaaaaaa
aaaaaaaaa=E2=80=99aaaaaaaaaaaa= aaaaaaaaaaaaaaaa aaaa=E2=80=99aaaaaaaaaaaaaaaaaaa=E2=80=99aaaaaaaaaa
nnnnnnnnn'nnnnnnnnnnnnnnnnnnnnnnnnnnnn nnnn'nnnnnnnnnnnnnnnnnnn= 9;nnnnnnnnnn
nnnnnnnnn=E2=80=99nnnnnnnnnnnnnnnnnnnnnnnnnnnn nnnn=E2=80= =99nnnnnnnnnnnnnnnnnnn=E2=80=99nnnnnnnnnn

Search for the first one w= ith char folding enabled. In my system Emacs
doesn=E2=80=99t match the s= econd line. It matches after I hit =E2=80=98C-M-d=E2=80=99 to
delete the= last character from the search query.

If you search with char foldi= ng enabled for the third line then it
does match the fourth, even though= the third and the fourth lines are
just copies of the first two with th= e a=E2=80=99s replaced by n=E2=80=99s.

All the best,=
Andrea


In GNU Emacs 27.2 (build 1, x86_6= 4-redhat-linux-gnu, GTK+ Version 3.24.30, cairo version 1.17.4)
=C2=A0of= 2021-08-07 built on buildvm-x86-29.iad2.fedoraproject.org
Windowing system distributo= r 'The X.Org Foundation', version 11.0.12101003
System Descripti= on: Fedora 34 (Workstation Edition)

Recent messages:
For informat= ion about GNU Emacs and the GNU system, type C-h C-a.
Making completion = list... [2 times]

Configured using:
=C2=A0'configure --build= =3Dx86_64-redhat-linux-gnu
=C2=A0--host=3Dx86_64-redhat-linux-gnu --prog= ram-prefix=3D
=C2=A0--disable-dependency-tracking --prefix=3D/usr --exec= -prefix=3D/usr
=C2=A0--bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconf= dir=3D/etc
=C2=A0--datadir=3D/usr/share --includedir=3D/usr/include --li= bdir=3D/usr/lib64
=C2=A0--libexecdir=3D/usr/libexec --localstatedir=3D/v= ar
=C2=A0--sharedstatedir=3D/var/lib --mandir=3D/usr/share/man
=C2=A0= --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png=C2=A0--with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=3Dgt= k3
=C2=A0--with-gpm=3Dno --with-xwidgets --with-modules --with-harfbuzz<= br>=C2=A0--with-cairo --with-json build_alias=3Dx86_64-redhat-linux-gnu
= =C2=A0host_alias=3Dx86_64-redhat-linux-gnu CC=3Dgcc 'CFLAGS=3D-DMAIL_US= E_LOCKF -O2
=C2=A0-flto=3Dauto -ffat-lto-objects -fexceptions -g -grecor= d-gcc-switches
=C2=A0-pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIF= Y_SOURCE=3D2
=C2=A0-Wp,-D_GLIBCXX_ASSERTIONS
=C2=A0-specs=3D/usr/lib/= rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
=C2=A0-specs=3D/= usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric
=C2=A0-fasyn= chronous-unwind-tables -fstack-clash-protection -fcf-protection'
=C2= =A0LDFLAGS=3D-Wl,-z,relro
=C2=A0PKG_CONFIG_PATH=3D:/usr/lib64/pkgconfig:= /usr/share/pkgconfig'

Configured features:
XPM JPEG TIFF GIF = PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY
INOTIFY ACL LIBSELINUX G= NUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF
ZLIB TOOLKIT_SCROLL_BARS= GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS
LIBSYSTEMD JSON PDUMPER GMP<= br>
Important settings:
=C2=A0 value of $LANG: en_GB.UTF-8
=C2=A0 = value of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: utf-8-unix=

Major mode: Lisp Interaction

Minor modes in effect:
=C2= =A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t<= br>=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 t= ool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode:= t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0= blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-enc= ryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mo= de: t
=C2=A0 transient-mark-mode: t

Load-path shadows:
None fo= und.

Features:
(shadow sort mail-extr emacsbug message rmc puny d= ired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cac= he epa derived epg
epg-config gnus-util rmail rmail-loaddefs text-proper= ty-search time-date
subr-x seq byte-opt gv bytecomp byte-compile cconv m= m-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mai= lheader cl-loaddefs
cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util m= ail-prsvr mail-utils
tooltip eldoc electric uniquify ediff-hook vc-hooks= lisp-float-type
mwheel term/x-win x-win term/common-win x-dnd tool-bar = dnd fontset image
regexp-opt fringe tabulated-list replace newcomment te= xt-mode elisp-mode
lisp-mode prog-mode register page tab-bar menu-bar rf= n-eshadow isearch
timer select scroll-bar mouse jit-lock font-lock synta= x facemenu
font-core term/tty-colors frame minibuffer cl-generic cham ge= orgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean<= br>japanese eucjp-ms cp51932 hebrew greek romanian slovak czech europeanethiopic indian cyrillic chinese composite charscript charprop
case-tab= le epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvic= e loaddefs button faces cus-face macroexp files
text-properties overlay = sha1 md5 base64 format env code-pages mule
custom widget hashtable-print= -readable backquote threads dbusbind
inotify dynamic-setting system-font= -setting font-render-setting
xwidget-internal cairo move-toolbar gtk x-t= oolkit x multi-tty
make-network-process emacs)

Memory information= :
((conses 16 45893 6606)
=C2=A0(symbols 48 6007 1)
=C2=A0(strings= 32 15796 1378)
=C2=A0(string-bytes 1 518486)
=C2=A0(vectors 16 10238= )
=C2=A0(vector-slots 8 133527 10860)
=C2=A0(floats 8 20 35)
=C2= =A0(intervals 56 271 0)
=C2=A0(buffers 1000 12))
--000000000000e76a3905d2bca34f--