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 25, 2019 23:14
Re: [perl #133945] ce6f496d720f6206455628425320badd95b07372 breaksfloat formatting under GTK
Message ID:
> >>>
> >>> Thanks for the explanation, that makes sense.
> >>> This will help me fixing my affected code; I wish I knew about
> >>> Perl_sync_locale() before.
> >>
> >> Where would you have read that putting a link to perlapi for this would have shown you it existed?
> > 
> > "Read" assumes active monitoring of such news, which I almost never do.
> > Reaching to authors that have GTK-related modules would be nice though; there
> > aren't that many of those. I've got a heads up last time about a similar issue
> > from Slaven Rezic who runs cpantests massively, and I'm grateful for that.
> I meant, where in the perl docs would you have gone when you noticed the 
> problem.  I'm presuming you looked at them, but didn't find a reference 
> to this function.

I didn't go to the docs at all. My timeline was something like this:

- Slaven sent a pull request for my module (Prima) to workaround perl bug in 5.20.1 that failed tests
- Between 5.20.1 and 5.28 everything was fine
- I started to see failures again after 5.29.2, that I could reproduce and fix by the same workaround as did for 5.20.1
- I bisected and submitted a patch

Even if I did go for the docs, I wouldn't have a slightest idea where to look
for, because I wasn't familiar that locale syncing is a problem at all. I
though think that this is okay, Perl is full of such hidden pieces one simply
has to know. By the same token I look into C code generated by XS (because I
also generate C/Perl glue code but without XS) to see what have changed, and
these changes I don't expect to see in the docs either.

For the constructive note, it might be a (probably even good) idea to issue a
warning if perl detects discrepancy between real C locale and expected locale,
pointing that authors should read about sync_locale(). 

	Dmitry Karasik

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