Package: libcatalyst-perl Version: 5.80005-1 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu karmic ubuntu-patch
In Ubuntu, we've applied the attached patch to achieve the following: * Removed unnecessary sprintf when using the test server: cause warnings on locales where commas are used for decimal markers We thought you might be interested in doing the same. The reported bug is at https://bugs.launchpad.net/ubuntu/+source/libcatalyst-perl/+bug/308508 , it's been sent upstream: http://rt.cpan.org/Public/Bug/Display.html?id=41753 -- System Information: Debian Release: 5.0 APT prefers jaunty-updates APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500, 'jaunty-proposed'), (500, 'jaunty-backports'), (500, 'jaunty') Architecture: i386 (i686) Kernel: Linux 2.6.28-13-generic (SMP w/2 CPU cores) Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
--- libcatalyst-perl-5.80005.orig/lib/Catalyst.pm +++ libcatalyst-perl-5.80005/lib/Catalyst.pm @@ -1647,7 +1647,7 @@ } if ($c->use_stats) { - my $elapsed = sprintf '%f', $c->stats->elapsed; + my $elapsed = $c->stats->elapsed; my $av = $elapsed == 0 ? '??' : sprintf '%.3f', 1 / $elapsed; $c->log->info( "Request took ${elapsed}s ($av/s)\n" . $c->stats->report . "\n" );