[Bug 835452] New: perl-5.16.0: Broken printing decimal numbers in locales with comma decimal sign

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=835452

            Bug ID: 835452
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
          Severity: unspecified
               URL: https://rt.perl.org/rt3/Public/Bug/Display.html?id=109
                    318
           Version: rawhide
          Priority: unspecified
                CC: cweyl@xxxxxxxxxxxxxxx, iarnell@xxxxxxxxx,
                    jplesnik@xxxxxxxxxx, kasal@xxxxxx, lkundrak@xxxxx,
                    mmaslano@xxxxxxxxxx,
                    perl-devel@xxxxxxxxxxxxxxxxxxxxxxx, ppisar@xxxxxxxxxx,
                    psabata@xxxxxxxxxx, rc040203@xxxxxxxxxx,
                    tcallawa@xxxxxxxxxx
          Assignee: mmaslano@xxxxxxxxxx
           Summary: perl-5.16.0: Broken printing decimal numbers in
                    locales with comma decimal sign
        Regression: ---
      Story Points: ---
    Classification: Fedora
                OS: Unspecified
          Reporter: ppisar@xxxxxxxxxx
              Type: Bug
     Documentation: ---
          Hardware: Unspecified
        Mount Type: ---
            Status: ASSIGNED
         Component: perl
           Product: Fedora

use strict;
use warnings;
use POSIX;
use locale;

setlocale(LC_NUMERIC,"sv_SE");

printf("%g\n","3.14e+9"); # prints "3,14e+09\n"
printf("%g\n","3,14e+9"); # prints "3,14e+09\n"
printf("%g\n","3.14e-9"); # prints "3,14e-09\n"
printf("%g\n","3,14e-9"); # prints "3\n" *** WRONG! ***

Fixed in upstream commit:

commit 78787052b6a68c0f54cfa983a69c44276de9daa4
Author: Jesse Luehrs <doy@xxxxxxxx>
Date:   Tue Jun 26 00:13:54 2012 -0500

    use a less broken test for locale radix in atof [perl #109318]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux