[mc] User menu: pattern matching acts not as expected

Yury V. Zaytsev yury at shurup.com
Wed Mar 12 14:54:49 UTC 2025


> On 12. Mar 2025, at 15:38, Eugen Fabian Karban via mc <mc at lists.midnight-commander.org> wrote:
> 
> The problem ist by the file 'file_without_spaces_utf8_nonlocal_chars_à_á_' 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.midnight-commander.org/pipermail/mc/attachments/20250312/29504fd4/attachment.htm>


More information about the mc mailing list