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

 
 

bug #36430: Write should escape special characters in symbols

Submitted by:  None
Submitted on:  Mon 07 May 2012 09:25:15 PM UTC  
 
Category: runtimeSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect behavior
Status: FixedPrivacy: Public
Assigned to: Matt Birkholz <mhb>Originator Name: Alexey Radul
Originator Email: -unavailable-Open/Closed: Closed
Keywords: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Fixed in commit 4d35583.

Matt Birkholz <mhb>
Project MemberIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 08 May 2012 06:51:42 PM UTCmhbStatusNone=>Fixed
      Assigned toNone=>mhb
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1