[Toybox] [PATCH] ls: Ensure file names are separated by 2 spaces

Jarno Mäkipää jmakip87 at gmail.com
Fri Oct 25 14:12:47 PDT 2019


hi

Feel free to ask me if you run into any questions. And also share your
experiments and results. I have gained some knowledge on utf-8
encoding past years. I did internationalization support for
microcontroller based system around ~2011 on my $DAYJOB. And end up
writing utf-8 handling and bitmap font rendering as well as bitmap
font generator that limits glyphs "installed" to system to only the
ones that exist in translation package to save limited flash memory.

Last spring I started refreshing my memory bit while writing vi
implementation. But under posix system things are tiny bit easier
since there is proper c library that provides mbtowc and wcwidth
etc...

Most languages dont actually use combining characters, but one that I
find difficult to handle is hindi, even vim/neovim has problems
stepping around some hindi text I found


-Jarno

On Fri, Oct 25, 2019 at 11:26 PM Andrew Ilijic <ilijic.andrew at gmail.com> wrote:
>
> Hi Jarno,
>
> Thank you for your email. It caused me to learn a lot about Unicode
> today. I still need to collect my thoughts but I wanted to respond to
> your email. I tried throwing all kinds of crazy Unicode at XTerm,
> Gnome Terminal, and Suckless Terminal. I don't think any of them do
> the "right" thing in all cases but, XTerm seems to be the best. `ls`
> seems to be handling combining characters well. I am going to compare
> how `cut` and `ls` handle clipping the string. I have started to
> implement the column (`-w`) option in `ls` so I may shoot you an email
> if I have questions.
>
> ~Andrew



More information about the Toybox mailing list