develooper Front page | perl.perl5.porters | Postings from April 2016

Re: RFC: refuse to change into an unsupported locale

Thread Previous | Thread Next
April 27, 2016 12:27
Re: RFC: refuse to change into an unsupported locale
Message ID:
Sawyer X wrote:
>If we can detect it will crash

That's generally impossible.  We can potentially detect at configure
time that libc has a particular bug, and that's a useful strategy for
things that we can work around by substituting our own implementation.
But locale stuff isn't at all feasible to reimplement: our only strategy
for it is to call libc, and the most we could do based on a configure test
is to decline to call libc on arguments that we think it'll mishandle.
We should only thus limit the functionality when we're sure that libc
would in fact crash.  Crucially, the configure test can't tell us when
libc's bug gets fixed post-installation, nor can we test for the bug at
runtime when the result of the test may be a crash.  So any such crash
avoidance would inevitably cause us to refuse to process locales in some
situations where it would actually have worked.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About