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

enh enh at google.com
Mon Dec 14 21:13:59 PST 2020


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!)



On Mon, Dec 14, 2020 at 8:54 PM Rob Landley <rob at landley.net> 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
> _______________________________________________
> Toybox mailing list
> Toybox at lists.landley.net
> http://lists.landley.net/listinfo.cgi/toybox-landley.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20201214/7f3e5f16/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-main.c-construct-a-combination-locale-to-add-UTF-8.patch
Type: application/octet-stream
Size: 1483 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20201214/7f3e5f16/attachment-0003.obj>


More information about the Toybox mailing list