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

Rob Landley rob at landley.net
Sat Dec 19 19:25:20 PST 2020


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
> <https://sourceware.org/ml/libc-alpha/2017-08/msg00010.html>
> 
> The nonstandard header <xlocale.h> has been removed. Most programs should
> use <locale.h> instead. If you have a specific need for the definition of
> locale_t with no other declarations, please contact
> libc-alpha at sourceware.org <mailto:libc-alpha at sourceware.org> and explain.

toys.h was already including locale.h, so why did this patch add xlocale.h? What
didn't work (on what platform) without the extra header?

Rob



More information about the Toybox mailing list