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

 
 

bug #28926: EOL conversion in READ

Submitted by:  Helmut Eller <ellerh>
Submitted on:  Thu 18 Feb 2010 10:18:44 AM UTC  
 
Category: Scheme languageSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project AdministratorIn charge of this item.
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 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 bothner (Posted a comment)
  • -unavailable- added by ellerh (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
    Wed 24 Feb 2010 10:40:08 PM UTCbothnerStatusNone=>Fixed
      Assigned toNone=>bothner
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1