bugMIT/GNU Scheme - Bugs: bug #36430, Write should escape special...

 
 

bug #36430: Write should escape special characters in symbols

Submitter:  None
Submitted:  Mon 07 May 2012 09:25:15 PM UTC
   
 
Category:  runtime Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect behavior
Status:  Fixed Privacy:  Public
Assigned to:  mhb Originator Name:  Alexey Radul
Originator Email:  -email is unavailable- Open/Closed:  Closed
Keywords: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 08 May 2012 06:51:42 PM UTC, comment #1: 

Fixed in commit 4d35583.

Matt Birkholz <mhb>
Group Member
Mon 07 May 2012 09:25:15 PM UTC, original submission:  

to maintain write-read invariance.  Consider

1 ]=> (write '|#foo|)
#foo
;Unspecified return value

1 ]=> (with-output-to-string (lambda () (write '|#foo|)))

;Value 14: "#foo"

1 ]=> (with-input-from-string (with-output-to-string (lambda () (write '|#foo|))) read)

;Ill-formed boolean: #foo
;To continue, call RESTART with an option number:
; (RESTART 1) => Return to read-eval-print level 1.

2 error>

I would expect the last of these forms to return a symbol
that was eq? to the original '|#foo|; and I would expect the
first two to produce whatever output is appropriate to
ensure this.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mhb (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-05-08 mhb StatusNone Fixed
        Assigned toNone mhb
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code