Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
printf %a botches 0 flag for negative values #15505
Created by firstname.lastname@example.org
$ perl -lwe 'printf "%020a\n", $_ for 1.5, -1.5'
The latter has the zero padding in the wrong place. It should always go
$ perl -lwe 'printf $_, 1.5 for "%+020a\n", "% 020a\n"'
On Wed, 10 Aug 2016 13:37:53 -0700, email@example.com wrote:
I believe https://perl5.git.perl.org/perl.git/commit/be9304 fixed this.