format directives should be more forgiving to negative arguments
Bug #1439504 reported by
James Kalenius
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
(format t "~vd" -100 -100) signals an error. This is not the case on other implementations and isn't really supported by the standard, which just says that at least that many columns are printed. In ansi-cl-tests not signalling an error is part of test format.d.29.
The rest of the code as written works fine with negative numbers, so the error call (in format-write-field) just has to be deleted.
Exists in my distro's version (1.2.8) and in github master.
To post a comment you must log in.
I don't think anyone would intentionally supply negative arguments, so it's fair to not accept them.