Opened 15 years ago
Closed 15 years ago
#158 closed defect (fixed)
Printing "#<abc>" fails when *PRINT-READABLY* non-NIL
| Reported by: | ehuelsmann | Owned by: | nobody |
|---|---|---|---|
| Priority: | major | Milestone: | 0.27 |
| Component: | libraries | Version: | |
| Keywords: | patch | Cc: | |
| Parent Tickets: |
Description
(let ((*print-readably* t))
(print "#<abc>"))
--> Error: #<abc> cannot be printed readably
However, I'm printing a string containing something which looks like an unreadable object. Not an unreadable object itself!
Change History (3)
comment:1 by , 15 years ago
| Keywords: | patch added |
|---|
comment:2 by , 15 years ago
| Milestone: | → 0.27 |
|---|
comment:3 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
The patch below fixes this and doesn't create any new regressions in the ansi test suite. However, why was this bit of code there? Am I missing something???
Index: print.lisp
===================================================================
--- print.lisp (revision 13405)
+++ print.lisp (working copy)
@@ -280,10 +280,11 @@
+ ;; ### Why was this section here??? EH20110715
+ ;; (when (and *print-readably*
+ ;; (typep object 'string)
+ ;; (search "#<" object))
+ ;; (error 'print-not-readable :object object))