[Toybox] [PATCH] tr.c: added -t option and cleanup up formatting

Oliver Webb aquahobbyist at proton.me
Mon Oct 23 19:40:43 PDT 2023


------- Original Message -------
On Saturday, October 21st, 2023 at 05:22, Rob Landley <rob at landley.net> wrote:
> On 10/21/23 05:04, Rob Landley wrote:
> 
> > This guy went into detail, but I have not opened that particular can of worms yet:
> > 
> > http://databasearchitects.blogspot.com/2016/08/equivalence-of-unicode-strings-is.html
> 
> 
> Sigh:
> 
> https://www.unicode.org/reports/tr10/tr10-49.html
> 
> https://www.unicode.org/Public/UCA/latest/allkeys.txt
> 
> No. Not my problem. It looks like there's some code there already for ascii-only
> [=blah=] (not that I've tried to work through what it's doing or why yet), and
> I'm pretty happy leaving it at that unless there's some libc plumbing I can
> defer this mess to...
> 
> Rob

Heya, I fixed a segfault in the -t option code (referencing toys.optargs[1] while not knowing if there _is_ toys.optargs[1])
and added a test case for it. Also changed the help text I added to swap SET2 and SET1 (set1 is truncated with -t, not set2)

- Oliver Webb <aquahobbyist at proton.me>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-tr-t-no-set2-segfault-and-help-text.patch
Type: text/x-patch
Size: 1619 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20231024/8137920a/attachment.bin>


More information about the Toybox mailing list