bugKawa - Bugs: bug #28926, EOL conversion in READ

 
 

bug #28926: EOL conversion in READ

Submitter:  Helmut Eller <ellerh>
Submitted:  Thu 18 Feb 2010 10:18:44 AM UTC
   
 
Category:  Scheme language Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  bothner
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 24 Feb 2010 10:40:08 PM UTC, comment #1: 

Thanks - I fixed this.

(My reading of R6RS seems to suggest it is unspecified whether we get EOL-conversion of string ports, but it seems reasonable to leave the input characters alone.  OTOH it would not be unreasonable for the read function to do extra processing/normalization beyond what read-char does.)

Per Bothner <bothner>
Group administrator
Thu 18 Feb 2010 10:18:44 AM UTC, original submission:  

This expression

(let ((in (string #\" #\return #\")))
  (string-ref (call-with-input-string in read) 0))

returns #\newline. 

I would expected #\return here.

Helmut Eller <ellerh>

 

(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 bothner (Posted a comment)
  • -email is unavailable- added by ellerh (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
    2010-02-24 bothner StatusNone Fixed
        Assigned toNone bothner
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code