Branch: refs/heads/psc/ppc0025
  Home:   https://github.com/Perl/perl5
  Commit: 332d97a4c2232d5ffd128e4e0c808876321aad20
      
https://github.com/Perl/perl5/commit/332d97a4c2232d5ffd128e4e0c808876321aad20
  Author: Philippe Bruhat (BooK) <b...@cpan.org>
  Date:   2024-12-12 (Thu, 12 Dec 2024)

  Changed paths:
    M t/run/switches.t

  Log Message:
  -----------
  fix the test for perl -v


  Commit: a16bffce567a38c22301d196c73c699064f52982
      
https://github.com/Perl/perl5/commit/a16bffce567a38c22301d196c73c699064f52982
  Author: Philippe Bruhat (BooK) <b...@cpan.org>
  Date:   2024-12-12 (Thu, 12 Dec 2024)

  Changed paths:
    M cpan/CPAN-Meta-Requirements/t/from-hash.t
    M cpan/CPAN-Meta-YAML/t/01_compile.t
    M cpan/CPAN-Meta/lib/CPAN/Meta.pm
    M cpan/HTTP-Tiny/lib/HTTP/Tiny.pm
    M cpan/Pod-Simple/lib/Pod/Simple.pm
    M cpan/Pod-Simple/lib/Pod/Simple/BlackBox.pm
    M cpan/Pod-Simple/lib/Pod/Simple/DumpAsXML.pm
    M cpan/Pod-Simple/lib/Pod/Simple/HTML.pm
    M cpan/Pod-Simple/lib/Pod/Simple/RTF.pm
    M cpan/Pod-Simple/lib/Pod/Simple/XMLOutStream.pm
    M cpan/Pod-Simple/t/ascii_order.pl
    M cpan/Pod-Simple/t/encod04.t
    M cpan/Scalar-List-Utils/t/stack-corruption.t
    M cpan/Scalar-List-Utils/t/sum.t
    M cpan/Scalar-List-Utils/t/uniq.t
    M cpan/Scalar-List-Utils/t/uniqnum.t
    M cpan/Test-Harness/lib/TAP/Harness.pm
    M cpan/Test-Simple/lib/Test2/API.pm
    M cpan/Test-Simple/lib/Test2/Formatter/TAP.pm
    M cpan/Test-Simple/lib/Test2/Tools/Tiny.pm
    M cpan/Test-Simple/t/HashBase.t
    M cpan/Test-Simple/t/Legacy/Regression/736_use_ok.t
    M cpan/Test-Simple/t/Legacy/overload_threads.t
    M cpan/Test-Simple/t/Legacy_And_Test2/preload_diag_note.t
    M cpan/Test-Simple/t/Test2/behavior/init_croak.t
    M cpan/Test-Simple/t/Test2/behavior/nested_context_exception.t
    M cpan/Test-Simple/t/Test2/modules/API.t
    M cpan/Test-Simple/t/Test2/modules/API/Breakage.t
    M cpan/Test-Simple/t/Test2/modules/API/Instance.t
    M cpan/Test-Simple/t/Test2/modules/Hub.t
    M cpan/Test-Simple/t/Test2/modules/IPC/Driver.t
    M cpan/Test-Simple/t/Test2/modules/IPC/Driver/Files.t
    M cpan/Test-Simple/t/Test2/modules/Util.t
    M cpan/Test-Simple/t/Test2/regression/ipc_files_abort_exit.t
    M cpan/parent/t/parent-pmc.t
    M cpan/version/t/coretests.pm
    M dist/Attribute-Handlers/lib/Attribute/Handlers.pm
    M dist/Carp/t/arg_regexp.t
    M dist/Carp/t/arg_string.t
    M dist/Data-Dumper/Dumper.pm
    M dist/Data-Dumper/t/dumper.t
    M dist/Devel-PPPort/t/testutil.pl
    M dist/Dumpvalue/lib/Dumpvalue.pm
    M dist/Search-Dict/Makefile.PL
    M dist/Search-Dict/lib/Search/Dict.pm
    M dist/Search-Dict/t/Dict.t
    M dist/Storable/stacksize
    M dist/Storable/t/utf8.t
    M dist/Unicode-Normalize/mkheader
    M pod/perldiag.pod

  Log Message:
  -----------
  fix string comparisons with $] to use numeric comparison instead

The fix follows Zefram's suggestion from
https://www.nntp.perl.org/group/perl.perl5.porters/2012/05/msg186846.html

> On older perls, however, $] had a numeric value that was built up using
> floating-point arithmetic, such as 5+0.006+0.000002.  This would not
> necessarily match the conversion of the complete value from string form
> [perl #72210].  You can work around that by explicitly stringifying
> $] (which produces a correct string) and having *that* numify (to a
> correctly-converted floating point value) for comparison.  I cultivate
> the habit of always stringifying $] to work around this, regardless of
> the threshold where the bug was fixed.  So I'd write
>
>     use if "$]" >= 5.014, warnings => "non_unicode";


Compare: https://github.com/Perl/perl5/compare/ed65c160db72...a16bffce567a

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to