[mc] User menu: pattern matching acts not as expected
Amand Tihon
amand.tihon at alrj.org
Wed Mar 12 15:44:59 UTC 2025
If I may,
On Wednesday, 12 March 2025 12:39:39 CET Jörg Thümmler via mc wrote:
> 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...
It indeed looks like a charset issue, but I have no idea if the problem is on
Eugen's system or in mc.
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.
Amand.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.midnight-commander.org/pipermail/mc/attachments/20250312/db1cfbae/attachment.sig>
More information about the mc
mailing list