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

Yury V. Zaytsev yury at shurup.com
Wed Mar 12 15:03:42 UTC 2025


> On 12. Mar 2025, at 12:39, Jörg Thümmler <listen at vordruckleitverlag.de> wrote:
>> 
>>> It's possible, your "nonlocal" chars are replaced internally by "?" and this interpreted as a wildcard…
>> How is this even possible? Did you check the code?
> 
> Not at all. It's just the only difference between case 3 and case 4 (if I'm understanding Eugen's descriptions...) and I often saw strings with "nonlocal" chars printed as a collection of "?"s by the shell... and both filenames (3 and 4) are _without_ spaces (if I'm interpreting the "works as expected | works NOT as expected" well)

Well, if you did, you would see that it can't possibly have any connection to reality...

> I tried my old mc on one system (4.8.22 too) and *[[:space:]]* selects the file with "nonlocal" chars if I try, assume Eugen's renaming should work as well (although I didn't check, whether the regex interpretion works similar in both cases)
> 
> But being in an utf charset too I can't imagine why "à" or "á" shall be "nonlocal" here. Seems more likely there is some charset mismatch on Eugen's system, at least for the acting user. Maybe there are "invisible" chars in the name in his environment…


... but thanks for reproducing it. I can confirm that it doesn't seem to work correctly on 4.8.33. I'll try a debug build on the master to see what happens.




More information about the mc mailing list