htop icon indicating copy to clipboard operation
htop copied to clipboard

Filter function does not work with non-ASCII characters

Open Eucyon opened this issue 3 years ago • 1 comments

To reproduce, press F4 and insert e.g. ä, ö or ü.

Thank you!

Eucyon avatar Jun 08 '22 07:06 Eucyon

The getch() we are using has no idea about how to process multi-byte input properly. See https://github.com/ThomasDickey/dialog-snapshots/blob/7289c6063b40654f9818372cdbb9d17378ccc46a/ui_getc.c#L333 for an example of how to manage this better. Code from dialog is LGPL v2.1 so compatible. Hint, hint.

fasterit avatar Jun 08 '22 11:06 fasterit