[Toybox] [PATCH] main.c: fix UTF-8 on macOS.

Rob Landley rob at landley.net
Sat Dec 19 02:42:07 PST 2020


On 12/14/20 11:13 PM, enh wrote:
> On Mon, Dec 14, 2020 at 8:54 PM Rob Landley wrote:
> 
> >    On 12/14/20 7:33 PM, enh via Toybox wrote:
> >    > Unfortunately neither "C.UTF-8" nor "UTF-8" works on *both* OSes...
> >
> >    Tempted to newlocale() and uselocale() to edit utf8 support into "C" myself, but
> >    that's even LESS likely to work on macos, isn't it?
> >
> >    Rob
>> actually, the attached patch (on top of the one you already committed) doing
> exactly that does work for me on macOS. (untested on Linux though!)

What's xlocale.h? It's not in posix and musl hasn't got it.

Rob



More information about the Toybox mailing list