Hi.

In SBLC 1.1.3 running on Mac OS/X 10.6.8 calling FILE-WRITE-DATE on a file which doesn't exist fails because of a SB-IMPL::SIMPLE-FILE-PERROR.

Following LispWorks's CL HyperSpec (http://www.lispworks.com/documentation/HyperSpec/Body/f_file_w.htm#file-write-date) I was expecting NIL to be returned.

It doesn't seem that such a problem was reported before to the SBCL team. Am I missing something?
--Christian

Test Case:

;;; * Preliminary test case*
;;; Objective: checking that the generated file pathname is valid.
;;; file-spec is the file pathname to be tested.
(with-open-file (s file-spec :direction :output :if-exists :error)
   (format s "~&Dear Santa,~2%I was good this year.  ~
                Please leave lots of toys.~2%Love, Sue~
             ~2%attachments: milk, cookies~%")
   (truename s))

#P"/Users/christianwagner/src/Lisp/PAIP/bin/a.bin"

* (file-write-date file-spec)

3581753998

;;; * Failure test case *
;;;  Condition: /Users/christianwagner/src/Lisp/PAIP/bin/a.bin has been deleted
;;;  Expect result: NIL

* (file-write-date file-spec)

debugger invoked on a SB-INT:SIMPLE-FILE-ERROR:
  failed to find the WRITE-DATE of /Users/christianwagner/src/Lisp/PAIP/bin/a.bin:
    No such file or directory

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [ABORT] Exit debugger, returning to top level.

(SB-IMPL::SIMPLE-FILE-PERROR
 "failed to find the WRITE-DATE of ~A"
 #P"/Users/christianwagner/src/Lisp/PAIP/bin/a.bin"
 2)