[BUG] ([closed] non-issue)
stéphane ducasse
ducasse at iam.unibe.ch
Thu Jul 14 10:05:14 UTC 2005
Hi larry
I would prefer that this is not closed since this is an issue. I will
provide all the files so that someone can reproduce it.
I resent this question because it is important, I could not
understand how to get a MultiByteBinaryOrTextStream at its
beginning. I suppose that this should be somewhere but I could not
find it. Since I'm not totally dead this means that someone
else can have the same problem.
Stef
PS: People have the right to be on holiday and not reply to emails so
your timeout is too short.
On 13 juil. 05, at 13:48, Larry Trutter wrote:
> This report is being closed because I could not successfully
> replicate this issue without more information.
> You are welcome to resubmit the issue to the Mantis database with
> any more information that you can to aid us in understanding and
> replicating the problem at http://bugs.impara.de/ .
>
> thank you for your time,
> Larry Trutter
>
> Stéphane Ducasse wrote:
>
>
>> hi all
>>
>> can someone help me here?
>>
>> I did the following
>> |stream |
>> stream := (MultiByteFileStream fileNamed: 'BD4TabsDelimited.txt').
>> stream converter: MacRomanTextConverter new.
>> self assert: (stream upTo: Character cr) = ' Achille
>> Talon Greg Pas de pitié pour Achille talon 13
>> 1976 Dargaud "sur la couverture ""une histoire du journal
>> tintin""" '
>>
>> This is ok!
>>
>>
>>
>> Now I'm trying to use MultiByteBinaryOrTextStream as follow
>>
>> |stream |
>> stream := MultiByteBinaryOrTextStream on: self
>> completeWithTabbingLinesWithAccents encoding: 'mac-roman'.
>> self assert: (stream upTo: Character cr) = ' '
>>
>> when I do
>> stream contents I got '' while there is a collection...
>>
>> It seems that the stream once instantiated is at the end.
>> (readLimit is 0 when the instance is created)
>>
>> How can I say to the stream to be at the start. I tried reset,
>> resetAtStart without success
>> when in an inspector I copy the writeLimit to the readLimit then
>> upTo: works perfectly.
>>
>> Is it a bug?
>>
>> I added
>>
>> MultiByteBinaryOrTextStream>>atStart
>>
>> readLimit := writeLimit.
>> position := 0.
>>
>> and it works but this seems to me quite strange that I cannot open
>> a MultiByteBinaryOrTextStream
>> in read and be at the beginning of the stream
>>
>> Stef
>>
>>
>>
>>
>>
>>
>>
>
>
More information about the Squeak-dev
mailing list
|