|
FilePlugin used to cache the file size, so had its own definition of "at end". Caching the size was recently removed, but the definition of primitiveFileAtEnd was simply changed to call ftell() to get the file size.
Modifying primitiveFileAtEnd to simply use feof() results in the correct behaviour in this case, e.g.:
(FileSystem / 'dev' / 'urandom') binaryReadStream next: 8. " #[179 136 227 226 28 147 197 125]"
I'll open a separate issue to update the VM (https://pharo.fogbugz.com/f/cases/21643/) .
But we still shouldn't be relying on #atEnd so I'll have a look at Martin's ZnBufferedReadStream modifications first.
Cheers, Alistair
|
|
|
Priority: 3 – Must Fix
|
|
Status: Work Needed
|
|
Assigned to: Everyone
|
|
Milestone: Pharo7.0
|
Go to Case
|
|