applying the more sophisticated binary GCD. (thanks to Juho
Snellman)
* fixed some bugs revealed by Paul Dietz' test suite:
- ** format variable parameters ("~V<char>") are defaulted properly
+ ** FORMAT variable parameters ("~V<char>") are defaulted properly
if the corresponding argument is NIL.
+ ** FORMAT directives accepting a minpad parameter treat negative
+ values as 0.
+ ** literal commas as character parameters to FORMAT directives are
+ parsed correctly.
+
changes in sbcl-0.8.13 relative to sbcl-0.8.12:
* new feature: SB-PACKAGE-LOCKS. See the "Package Locks" section of
:offset posn)
(setf atsignp t)))
(t
- (when (char= (schar string (1- posn)) #\,)
+ (when (and (char= (schar string (1- posn)) #\,)
+ (or (< posn 2)
+ (char/= (schar string (- posn 2)) #\')))
(check-ordering)
(push (cons (1- posn) nil) params))
(return))))
;; we're supposed to soldier on bravely, and so we have to deal with
;; the unsupplied-MINCOL-and-COLINC case without blowing up.
(when (and mincol colinc)
- (do ((chars (+ (length string) minpad) (+ chars colinc)))
+ (do ((chars (+ (length string) (max minpad 0)) (+ chars colinc)))
((>= chars mincol))
(dotimes (i colinc)
(write-char padchar stream))))
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.8.13.42"
+"0.8.13.43"