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

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

Thread Previous | Thread Next
Dmitry Karasik
March 22, 2019 10:31
Re: [perl #133945] ce6f496d720f6206455628425320badd95b07372 breaksfloat formatting under GTK
Message ID:
On Thu, Mar 21, 2019 at 08:16:52PM -0700, 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:

(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.

	Dmitry Karasik

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