Re: [PATCH] Include "xlocale.h", not <xlocale.h>.

Michael Haubenwallner <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
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!

Thanks!
/haubi/
signature.asc (application/pgp-signature, 981 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQKTBAEBCgB9FiEEY4PJ0Y//u+XgtVrKscWEirl385IFAl0At49fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDYz
ODNDOUQxOEZGRkJCRTVFMEI1NUFDQUIxQzU4NDhBQjk3N0YzOTIACgkQscWEirl3
85IcnA/9HnLNIqJk4/jwhIu/+DGV0Z6eMdd2SSywCRqJQGtVLQteLtszF0xdwtYL
xsJh7a7OabLnX+RJx2ZIQgN2WuMBFB6SOHVTvcKN+c2vYAWJGcTvMTuoq78HCuER
zAVz4+RVn1x9Mlv3XUcJdMyc+dse2gLvSYyq1YFsOyip0AccByhRJSiS/zhhxHBF
lsvRXyyT/2tWt2XwkoAv8K2rhut3y/CoCZhvc/fy5puvnGWwXTKi5AM6JMWlMRUO
UFHP3/3OEcdYLTCemUuTv2P9+rMuDMGkJEVcu9Lftd+YWn07g/NJw2ZMxmcbF4d7
Ll6S74KTTHHRQ5A4SlyyjTLYtStOGBLMKbOKEY/Rhi2+PSQ47gyT61gniaeQfccY
4mm++LuW4wmrWIk2wIj6skNQKd8lZoOxC3DQLxno4wpfmhrqWZTTdbQ7HEQB0tIp
hQM9wvjFX8lie3WQeHqIiSQrruDTlW/k1SByjp0NR62VBftxA1RJ/Z7kAjCnrNAS
G34wZAsP97nAnRzF17l+mxKwdsR/D1uBxIVYavXb/qla/z8Z0md4NDU2qeUKVNsB
9HmZDHVjwnr41oU14YaYa5BJAiEA7fe2j1TODM7Ii/RZxOMDXhgviRbPnlTRTOYi
KDyGmLfMzs4weDZZv/jmiCIdor9JAxAMdtqbNAOV0nc6ix9Eys4=
=t5wh
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.