[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-mit-scheme] [bug #36430] Write should escape special characters in

From: anonymous
Subject: [Bug-mit-scheme] [bug #36430] Write should escape special characters in symbols
Date: Mon, 07 May 2012 21:25:16 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0


                 Summary: Write should escape special characters in symbols
                 Project: MIT/GNU Scheme
            Submitted by: None
            Submitted on: Mon 07 May 2012 09:25:15 PM UTC
                Category: runtime
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect behavior
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Alexey Radul
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any



to maintain write-read invariance.  Consider

1 ]=> (write '|#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.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]