This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make pack-as-int/sprintf-%c-ing/chr-ring inf/nan fatal.
authorJarkko Hietaniemi <jhi@iki.fi>
Tue, 23 Sep 2014 17:41:08 +0000 (13:41 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 23 Sep 2014 23:30:52 +0000 (19:30 -0400)
commit0c7df90239f4c313f42964755700c2a3c78ec63c
tree0093edf258176ada1ad7c879174fabb20b037a28
parent3840bff0794b78cc0f09c29f47bef7bde1904361
Make pack-as-int/sprintf-%c-ing/chr-ring inf/nan fatal.

In pack: No point in trying to return all-bit-off/all-bits-one
because inf/-inf/nan really don't map sensibly into integers.

In printf-%c/chr: while U+FFFD would be an option, better to die
on such weird input.

pack-as-fp still works, sprintf-numeric still works.

Make t/op/infnan.t to be less fragile about the number of expected tests.
pod/perldiag.pod
pp.c
pp_pack.c
sv.c
t/op/infnan.t
t/op/pack.t