Skip Menu |

This queue is for tickets about the Wx CPAN distribution.

Report information
The Basics
Id: 105461
Status: new
Priority: 0/
Queue: Wx

People
Owner: Nobody in particular
Requestors: dolmen [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in:
  • 0.9923
  • 0.9924
  • 0.9925
  • 0.9926
  • 0.9927
Fixed in: (no value)



Subject: $Wx::VERSION is locale dependent on 0.9923
With perl 5.16.3 and Wx 0.9923 on Ubuntu 14.04, the value of $Wx::VERSION is dependent on the locale setting for the decimal separator:

$ LC_NUMERIC=fr_FR.UTF-8 PLENV_VERSION=5.16.3 perl -MWx -E 'say $Wx::VERSION'
0,9923

$ LC_NUMERIC=C PLENV_VERSION=5.16.3 perl -MWx -E 'say $Wx::VERSION'
0.9923


I can't reproduce this in perl 5.20.1 with Wx 0.9927, but I don't see either anything mentionned related to this in the Changes file.


-- 
Olivier Mengué - http://perlresume.org/DOLMEN - https://gratipay.com/dolmen/
This issue has distant side-effects: it breaks AnyEvent.

$ LC_NUMERIC=fr_FR.UTF-8 perl -MWx -MAnyEvent::Loop -E 'say AnyEvent::Loop::ROUNDUP'
Undefined subroutine &AnyEvent::Loop::ROUNDUP called at -e line 1.
$ LC_NUMERIC=C perl -MWx -MAnyEvent::Loop -E 'say AnyEvent::Loop::ROUNDUP'
0.00099

-- 
Olivier Mengué - http://perlresume.org/DOLMEN - https://gratipay.com/dolmen/
I'm not reproducing the issue on perl 5.18.2 and 5.20.1 on the otherwise same environment.
Well, 0.9927 doesn't build properly on 5.18.2 (Wx::Media not found reported by t/01-load.t), but this is another issue.


-- 
Olivier Mengué - http://perlresume.org/DOLMEN - https://gratipay.com/dolmen/
I've also reported the issue on the AnyEvent mailing list:
http://lists.schmorp.de/pipermail/anyevent/2015q2/000751.html

Avoiding perl 5.16 (that is not anymore supported) is recommended:
http://lists.schmorp.de/pipermail/anyevent/2015q2/000752.html

-- 
Olivier Mengué - http://perlresume.org/DOLMEN - https://gratipay.com/dolmen/