Number: 2158

Date: 12-Sep-84 13':27':39

Submitter: Sannella.PA


Subject: (READ "") causes FILE NOT OPEN, not END OF FILE error

Assigned To: Masinter

Attn: Release

Status: Fixed

In/By: Harmony???

Problem Type: Bug

Impact: Moderate



Priority: Perhaps

System: Operating System

Subsystem: Generic File Operations



Lisp Version: 11-Sep-84 18':48':58

Source Files: 

Microcode Version: 5124

Memory Size: 4096

File Server: 

Server Software Version: 

Disposition: '
["masinter" "24-Sep-84 17':45':07" Assigned% To': Attn': Status':(Open->Fixed) In/By': Machine':(1132->) Description':]

Description: '
Date': 11 Sep 84 17':57 PDT'
Subject': (READ "") causes FILE NOT OPEN, not END OF FILE error'
To': Masinter'
cc': LispSupport'
Must be another problem with new string-streams.'
From': Masinter'
Subject': AR#2158, (READ "") causes FILE NOT OPEN'
To': LispSupport'
cc': vanMelle, JonL'
This was caused by a more serious underlying problem that (GETSTREAM "string" ) returned a string that wasn''t marked as open! (It was using the "access" passed into GETSTREAM).'
I''ve fixed \GETSTREAM on {Eris}<lispCore>Sources>AOFD & .DCOM when handed a string to always return a stream open only for input (which is in fact all the stream can do).'
The change is localized to one cond clause of \GETSTREAM. '
Since this is a "new" bug which was not in Carol, it is a potential candidate for inclusion in Harmony. (I marked it "In/By': Harmony???")'
Your call.'


Test Case: 

Edit-By: masinter

Edit-Date: 24-Sep-84 17':45':09