Download raw body.
[REPOST] ksh: utf8 full width character support for emacs.c
Hello Omar, Omar Polo wrote on Thu, Apr 03, 2025 at 08:41:48PM +0200: > i guess i have to put my code where my mouth is. I like your outline > for handling text in ksh interactive mode; can't promise anything but > i'll give it an honest spin! I'm not at all attempting to discourage you. However, please be aware that you might need a mouth of considerable size. The main challenge could turn out to be that not only there are two different command line editors (emacs and vi style), but each of them contains several instances of several types of issues - movement, insertion, replacement, deletion, horizontal scrolling, ... Even finding all the affected places in the code may be non-trivial because right now, the code assumes every (multi-byte) character has a display width of 1, so many of the places in question may offer little more indication than an inconspicious "++" operator. On top of that, care may be needed to keep the SMALL version of the shell small, not overflow media, not to over-complicate the code, and not to apply setlocale(3) effects to parts to the shell code where it might wreak havoc. Yours, Ingo
[REPOST] ksh: utf8 full width character support for emacs.c