develooper Front page | perl.perl5.porters | Postings from August 2019

Configure bug: xlocale.h (e.g. on current Cygwin)

From:
Achim Gratz
Date:
August 19, 2019 17:34
Subject:
Configure bug: xlocale.h (e.g. on current Cygwin)
Message ID:
87v9ut9i0c.fsf@Rainer.invalid

Cygwin has had an xlocale.h header file for about two and a half years
now.  It was introduced while getting better glibc compatibility,
however glibc has since dropped said header, which by itself seems to be
a BSDism AFAICT.  It was always a strict subset of the normal locale.h
(in fact locale.h includes it) on Cygwin.  This header will go away
again soon, following the glibc removal and to address several reports
of it shadowing XLocale.h from X11 in certain situations (most
filesystems on Windows are case insensitive).

Perl Configure checks for xlocale.h first and will include it in
config.h and perl.h even though it doesn't provide any extra API that
Perl would need, then later finds locale.h and includes that, too.  I
can defeat it via the hints file, but I think that this search strategy
is wrong, except maybe on BSD* systems.  If locale.h provides all API
and xlocale.h doesn#t add any, then it should not be included by
default.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About