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

Rob Landley rob at landley.net
Sun Oct 27 23:16:52 PDT 2019



On 10/25/19 4:12 PM, Jarno Mäkipää wrote:
> 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

If you could add more tests to the test suite for utf8, that would be lovely. I
do not have domain expertise here.

I note the toys/example directory  has demo_*.c commands which can have their
own tests/demo_blah.test files (see tests/demo_number.test for example), and
that's the way I test lib/ infrastructure when there isn't really a command for
it. The tests/files/utf8 directory is just "some stuff I collected". It's not
remotely systematic...

Rob



More information about the Toybox mailing list