", -1, "ab"); # should be like printf("!%3s!\n", "ab");
printf("!%3.*s!\n", 0, "ab");
printf("!%3.*s!\n", 1, "ab");
I think they should print
! ab!
! !
! a!
but perl5 does
! !
! !
! a!
Regards,
SADAHIRO Tomoyuki
atch has not coped with it yet.
cf. google code search for "%#.0o":
http://www.google.com/codesearch?hl=en&lr=&q=%22%25%23.0o%22
Regards,
SADAHIRO Tomoyuki
sprintf.patch.gz
Description: Binary data
;
if ($y =~ s/([Ee][-+])0(\d)/$1$2/) {
..
}
..
if ($x eq ">$result<") {
print "ok $i\n";
}
elsif ($skip) {
print "ok $i # skip $comment\n";
}
elsif ($y eq ">$result<") # Some C libraries always give
{ # three-digit exponent
print("ok $i # >$result< $x three-digit exponent accepted\n");
}
Regards,
SADAHIRO Tomoyuki