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

2021-01-05 Thread enh via Toybox
(answered on the original thread.) On Sat, Dec 19, 2020 at 7:13 PM Rob Landley wrote: > On 12/19/20 3:41 PM, scsijon wrote: > > EDIT: apparently it was supposedly removed and your suppose to use > locale.h > > instead. > > > > https://sourceware.org/ml/libc-alpha/2017-08/msg00010.html > >

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

2021-01-05 Thread enh via Toybox
from bionic's xlocale.h: /** * @file xlocale.h * @brief `locale_t` definition. * * Most users will want `` instead. `` is used by the C * library itself to export the `locale_t` type without exporting the * `` functions in other headers that export locale-sensitive * functions (such as

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

2020-12-19 Thread Rob Landley
On 12/19/20 3:41 PM, scsijon wrote: > EDIT: apparently it was supposedly removed and your suppose to use locale.h > instead. > > https://sourceware.org/ml/libc-alpha/2017-08/msg00010.html > > > The nonstandard header has been removed.

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

2020-12-19 Thread scsijon
On 20/12/20 8:13 am, toybox-requ...@lists.landley.net wrote: Message: 1 Date: Sat, 19 Dec 2020 04:42:07 -0600 From: Rob Landley To: enh Cc: toybox Subject: Re: [Toybox] [PATCH] main.c: fix UTF-8 on macOS. Message-ID: Content-Type: text/plain; charset=utf-8 On 12/14/20 11:13 PM, enh wrote

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

2020-12-19 Thread Rob Landley
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" >

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

2020-12-14 Thread enh via Toybox
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 wrote: > On 12/14/20 7:33 PM, enh via Toybox wrote: > > Unfortunately neither "C.UTF-8" nor "UTF-8"

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

2020-12-14 Thread Rob Landley
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] [PATCH] main.c: fix UTF-8 on macOS.

2020-12-14 Thread enh via Toybox
Unfortunately neither "C.UTF-8" nor "UTF-8" works on *both* OSes... --- main.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) 0001-main.c-fix-UTF-8-on-macOS.patch Description: Binary data ___ Toybox mailing list Toybox@lists.landley.net