Actions
Bug #10454
closed%i doesn't have any special behavior in rb_sprintf et al.
Bug #10454:
%i doesn't have any special behavior in rb_sprintf et al.
Description
README.EXT claims:
In the format string,
%iis used forObject#to_s(orObject#inspectif ‘+’ flag is set) output (and related argument must be a VALUE).
But if you look at the code, this isn't true. %d and %i are handled the same in BSD_vfprintf (which is where all the printf functions end up). Has this ever been the case? I went back to when this documentation was added and it still looks like they're handled the same.
Actions