From c47910efd0fad226b41f17bb6c871ea1026ea1e5 Mon Sep 17 00:00:00 2001 From: dtc <dtc> Date: Sat, 19 Dec 1998 16:02:24 +0000 Subject: [PATCH] Check that the :default external-format is given to open. Based on patches from Peter Van Eynde. --- code/fd-stream.lisp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/fd-stream.lisp b/code/fd-stream.lisp index 4a411d068..23ad0b582 100644 --- a/code/fd-stream.lisp +++ b/code/fd-stream.lisp @@ -5,7 +5,7 @@ ;;; Carnegie Mellon University, and has been placed in the public domain. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/fd-stream.lisp,v 1.45 1998/07/16 13:30:45 pw Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/fd-stream.lisp,v 1.46 1998/12/19 16:02:24 dtc Exp $") ;;; ;;; ********************************************************************** ;;; @@ -1260,8 +1260,10 @@ non-server method is also significantly more efficient for large reads. :overwrite, :append, :supersede or nil :if-does-not-exist - one of :error, :create or nil See the manual for details." - (declare (ignore external-format)) + (unless (eq external-format :default) + (error "The only recognised external format is :default.")) + ;; First, make sure that DIRECTION is valid. Allow it to be changed if not. (setf direction (assure-one-of direction -- GitLab