Re: [PATCH] Include "xlocale.h", not <xlocale.h>.
Corinna Vinschen <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
On Jun 13 09:51, Michael Haubenwallner wrote: > > > On 6/12/19 10:27 AM, Michael Haubenwallner wrote: > > Hi Corinna, > > > > On 6/12/19 10:05 AM, Corinna Vinschen wrote: > >> Hi Michael, > >> > >> On Jun 11 19:43, Michael Haubenwallner wrote: > >>> libX11 does provide an <X11/Xlocale.h>, and while building libX11 > >>> itself, they add their include/X11 to the compiler's include path. > >>> Now when newlib headers include <xlocale.h> on the case insensitive > >>> file system, the compiler does pick their Xlocale.h. > >>> So we better include "xlocale.h" in newlib headers instead, to prefer > >>> newlib xlocale.h from within newlib headers. > >> > >> Commit 90e35b1eb3df renamed _locale.h to xlocale.h in March 2017 under > >> the assumption that we should provide the locale_t type in the same file > >> as on Linux, FreeBSD, and Darwin. > >> > >> A few weeks later (June 2017), glibc removed the xlocale.h file in favor > >> of bits/types/locale_t.h, which shouldn't be included directly anyway. > >> > >> For reference and the reasoning, see > >> https://sourceware.org/git/?p=glibc.git;a=commit;h=f0be25b6336d > >> > >> Given that glibc and thus Linux stopped providing the non-standard > >> xlocale.h header, I'd favor reverting 90e35b1eb3df. > > > > Fine with me as well! > > And just in case you're waiting for a patch to apply... Thanks, I already have a patch. I was just waiting if Yaakov has some input. He provided the original patch. Yaakov? Any input? Thanks, Corinna -- Corinna Vinschen Cygwin Maintainer Red Hat
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl0CLNcACgkQ9TYGna5E T6CJdg/+P8PszPt9ZIyS09uHGemsihjC+qwaZ126dFOgwh49Ab7O6UAgZ5vISems Lmy1jaWZRE/ma/28wcV+Xy5Dw+Va612j3vqWGf743ePIZ3ZogveOil4LRnAQvhKw p5MFUYon+GkLzjZUFudgVisgLIl8uc/g1rH6KOAudWcIyg8COnsUpvQzXnRuLu1I ttSH3yxnrUUIDuCEtP7EKcyn2I0/YJji5jsUdTBn+cUEiMCCS6kNF2NiWsOhoYnA SMhA0WEO6m7elV5Nbc2+4OuJrGo1c0moiitvl6j7BKxrXm0kuB/bM5zWR3QFfjqv GyOhaBfC/YHKs8GnVjK66IakLN32FBHKIzAzUsZmHDKzzfM+G+GOU8hPqjoETCLc bERgfeSzHow1mR+R8L1ORVH881v6hRaqkThLmnyYPjLMtlQ779Do/4CauYv+gNsC UNksvVm/gtz+dgOGucDgYiPBjibxhcsMbyEDpR1Com+qEW4zi/JDpMkzOZQGQNCd 8nX0h2eVPxpJKOXIEkIxYJ65ALzVt47sGQFO+0nj2qtNdZb9lQpTQiCy2QzaUC+X bWA9Xx6zBWr6M0c6z4UffYPXgBvoVrHG1LkQieA/Rxk1fVc6xZSJZ3RLr26ouSs6 qSsQQy4TEBh1MBNW5nrJWzB7JrkLCgmVXwjSCUkxRqeUq3ioW2w= =vCPf -----END PGP SIGNATURE-----