bugGNU Common Lisp - Bugs: bug #67328, PRINT doesn't signal...

 
 

bug #67328: PRINT doesn't signal PRINT-NOT-READABLE when printing an unreadable object

Submitter:  Robert Dodier <robert_dodier>
Submitted:  Wed 16 Jul 2025 05:39:42 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Wed 16 Jul 2025 05:39:42 PM UTC, original submission:  

Working w/ GCL 2.6.14 on Linux.

CLHS says, about `*PRINT-READABLY*`,

> If printing an object readably is not possible, an error of type print-not-readable is signaled rather than using a syntax (e.g., the ``#<'' syntax) that would not be readable by the same implementation.


However, when I try to print an object with no readable representation, e.g. a stream, PRINT doesn't signal PRINT-NOT-READABLE, and instead prints an unreadable representation:


>(let ((*print-readably* t)) (print *standard-output*))

#<synonym stream to *TERMINAL-IO*>
#<synonym stream to *TERMINAL-IO*>


Expected result is that PRINT signals PRINT-NOT-READABLE instead of printing an unreadable representation.

Robert Dodier <robert_dodier>

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by robert_dodier (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16-ed84.
    Corresponding source code