Skip Menu |

This queue is for tickets about the MIME-Lite CPAN distribution.

Report information
The Basics
Id: 73127
Status: open
Priority: 0/
Queue: MIME-Lite

People
Owner: Nobody in particular
Requestors: felix.ostmann [...] thewar.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: MIME::Lite changes setlocale LC_NUMERIC
When using MIME::Lite, it silently overwrite my settings for LC_NUMERIC # perl -MMIME::Lite -Mlocale -MPOSIX -e 'my $i = 0.123; POSIX::setlocale(POSIX::LC_NUMERIC(),"de_DE.utf8"); printf("%.2f\n", $i); MIME::Lite->new(From => "",To => ""); printf("%.2f\n", $i);' 0,12 0.12
I tracked this down somewhat. It's not in MIME::Lite at all, but in version.pm. MIME::Lite loads Email::Date::Format, which loads Time::Local, which loads constant, which says "use 5.005" which implicitly loads version.pm. perl -Mlocale -MPOSIX -e 'my $i = 0.123; POSIX::setlocale(POSIX::LC_NUMERIC(),"de_DE"); printf("%.2f\n", $i); require version; printf("%.2f\n", $i);' I'll bring this up on perl5-porters. -- rjbs