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

Yury V. Zaytsev yury at shurup.com
Wed Mar 12 17:33:41 UTC 2025


> On 12. Mar 2025, at 16:44, Amand Tihon via mc <mc at lists.midnight-commander.org> wrote:
> 
> If we decode the UTF-8 characters, we get these bytes:
> 
>>>> [hex(c) for c in '_à_á_'.encode('utf8')]
> ['0x5f', '0xc3', '0xa0', '0x5f', '0xc3', '0xa1', '0x5f']
> 
> And 0xa0 is the code for "Non-Breaking Space" in iso8859.

This is indeed a correct explanation of what is happening. I've reported an issue and attached a tentative patch: 
  https://github.com/MidnightCommander/mc/issues/4665

No idea if one can do better... I hope someone else can take a look.



More information about the mc mailing list