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

Re: [perl #133945] ce6f496d720f6206455628425320badd95b07372 breaksfloat formatting under GTK

Thread Previous | Thread Next
From:
Dmitry Karasik
Date:
March 22, 2019 10:31
Subject:
Re: [perl #133945] ce6f496d720f6206455628425320badd95b07372 breaksfloat formatting under GTK
Message ID:
20190322103146.GA51552@nataraj.eu.org
On Thu, Mar 21, 2019 at 08:16:52PM -0700, sisyphus@cpan.org via RT wrote:
> Complete locale numbnut here, who is puzzled at how to account for the behaviour being demonstrated.
> (Feel free to educate me ... or to ignore me.)

Here's a good explanation on the similar issue:

https://rt.perl.org/Ticket/Display.html?id=122105

(it's buried somewhere in the discussion).

Basically Perl has the idea that it is master of setlocale(), while GTK
disagrees, both for good reasons.  So IIUC Perl syncs the locale state one in a
while, while I personally think authors integrating those libs should do that,
explicitly -- but that's too late now, as it will break lots of modules.

> Is Gtk2 altering the "current underlying locale" in such a way that C's
> strtod() is affected, while perl's atof functionality (which Perl_strtod
> replaces) would be unaffected ?

It seems that way to me.


-- 
Sincerely,
	Dmitry Karasik

Thread Previous | Thread Next


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