[Pharo-dev] FileSystem memory bug?

Martin Dias tinchodias at gmail.com
Fri Nov 8 09:04:51 EST 2013


Thanks, but it's the same: the streams are instances of WriteStream and
ReadStream... the implementation of #ascii in ReadStream is empty, and
WriteStream doesn't respond to #ascii.






On Fri, Nov 8, 2013 at 2:19 PM, Max Leske <maxleske at gmail.com> wrote:

>
> On 08.11.2013, at 13:59, Sven Van Caekenberghe <sven at stfx.eu> wrote:
>
> > Hi Martin,
> >
> > I would guess that the stream created by the memory filesystem are
> binary, not character, as STON expects.
>
> Good point, although currently ascii mode is still default I think.
> Try sending #ascii to the stream. That might help.
>
> >
> > Sven
> >
> > On 08 Nov 2013, at 13:55, Martin Dias <tinchodias at gmail.com> wrote:
> >
> >> Hi,
> >>
> >> I'm working in latest Pharo (30577) with STON (bleeding edge) and I get
> MNU:SmallInteger>>isSeparator when I evaluate the code below. Is my code
> wrong? The idea is to make my test suite work in the memory file system.
> >>
> >> | fileSystem |
> >> fileSystem := FileSystem memory.
> >>
> >> (fileSystem / 'file.txt') ensureCreateFile.
> >>
> >> STON writer
> >>      on: (fileSystem / 'file.txt') writeStream;
> >>      nextPut: 'hi'.
> >>
> >> STON reader
> >>      on: (fileSystem / 'file.txt') readStream;
> >>      next.
> >>
> >> Thanks in advance.
> >>
> >> Martín
> >
> >
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20131108/6728501a/attachment-0002.html>


More information about the Pharo-dev mailing list