Changeset 5203


Ignore:
Timestamp:
Sep 13, 2006, 5:07:17 AM (18 years ago)
Author:
Gary Byers
Message:

GET-CHARACTER-ENCODING errors if the named encoding isn't defined.

Terse PRINT-OBJECT method for CHARACTER-ENCODING.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-1/l1-unicode.lisp

    r5193 r5203  
    2424
    2525(defun get-character-encoding (name)
    26   (gethash name *character-encodings*))
     26  (or (gethash name *character-encodings*)
     27      (error "Unknown character encoding: ~s." name)))
    2728
    2829(defun (setf get-character-encoding) (new name)
     
    7980  )
    8081
     82
     83(defmethod print-object ((ce character-encoding) stream)
     84  (print-unreadable-object (ce stream :type t :identity t)
     85    (format stream "~a" (character-encoding-name ce))))
    8186
    8287;;; N.B.  (ccl:nfunction <name> (lambda (...) ...)) is just  like
Note: See TracChangeset for help on using the changeset viewer.