Re: User menu: pattern matching acts not as expected
"Yury V. Zaytsev via mc" <[email protected]> Wed, 12 Mar 2025 15:54:49 +0100
| Newsgroups | gmane.comp.gnome.apps.mc.general |
|---|---|
| Message-ID | <[email protected]> |
--===============8742772559521201020== Content-Type: multipart/alternative; boundary="Apple-Mail=_BFDE84EA-74FA-4AA0-8BA8-ED0E0C466540" --Apple-Mail=_BFDE84EA-74FA-4AA0-8BA8-ED0E0C466540 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 12. Mar 2025, at 15:38, Eugen Fabian Karban via mc = <[email protected]> wrote: >=20 > The problem ist by the file = 'file_without_spaces_utf8_nonlocal_chars_=C3=A0_=C3=A1_' hier the debug = result ist true (?) and it should be false. OK, thanks, that makes sense now. > Anyway i will make a test with a recent version of mc an report. Yes, please try with master. There was a recent fix for line endings = that could theoretically match [[:space:]]. I just tried it with the = editor and it works as expected. If it still doesn't work, we would need to turn your report into a unit = test and see why it fails. It's not clear to me why this shouldn't work = correctly from the current code. It should call `mc_search` with = filename and pattern in regex mode and there shouldn't be a match. --Apple-Mail=_BFDE84EA-74FA-4AA0-8BA8-ED0E0C466540 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"content-type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; = -webkit-nbsp-mode: space; line-break: = after-white-space;"><br><div><blockquote type=3D"cite"><div>On 12. Mar = 2025, at 15:38, Eugen Fabian Karban via mc = <[email protected]> wrote:</div><div><div = style=3D"font-family: verdana; font-size: 12px;"><div = style=3D"font-family: verdana; font-size: 12px;"><br></div> <div style=3D"font-family: verdana; font-size: 12px;">The problem ist by = the file 'file_without_spaces_utf8_nonlocal_chars_=C3=A0_=C3=A1_' hier = the debug result ist true (?) and it should be = false.<br></div></div></div></blockquote><div><br></div><div>OK, thanks, = that makes sense now.</div><div><br></div><blockquote = type=3D"cite"><div><div style=3D"font-family: verdana; font-size: = 12px;"><div style=3D"font-family: verdana; font-size: 12px;">Anyway i = will make a test with a recent version of mc an report.</div> </div></div></blockquote><br></div><div>Yes, please try with master. = There was a recent fix for line endings that could theoretically match = [[:space:]]. I just tried it with the editor and it works as = expected.</div><div><br></div><div>If it still doesn't work, we would = need to turn your report into a unit test and see why it fails. It's not = clear to me why this shouldn't work correctly from the current code. It = should call `mc_search` with filename and pattern in regex mode and = there shouldn't be a match.</div><div><br></div></body></html>= --Apple-Mail=_BFDE84EA-74FA-4AA0-8BA8-ED0E0C466540-- --===============8742772559521201020== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- mc mailing list [email protected] https://lists.midnight-commander.org/mailman/listinfo/mc --===============8742772559521201020==--