I would swear I already fixed this once before. Anyway, should work now in XtreamsDevelopment(315). I added UTF8 and UTF16 read/write tests this time :-).
Thanks for the bug report.
Martin
"Henrik Johansen"<
[hidden email]> wrote:
> Date: February 22, 2010 7:21:02 AM
> From: "Henrik Johansen"<
[hidden email]>
> To:
[hidden email]
> Subject: [vwnc] Xtreams and encodings
>
> As far as I can tell, Xtreams fails when the encoding calls next more
> than once as part of nextFrom: operation. (utf16/32, ucs-2, utf8 with
> non-ascii chars etc.)
>
> There's handling in EnodeReadStream>>read:into:at:, but it only fires
> when char returned is nil, not when there's an exception in the
> nextFrom: due to a too small buffer causing consecutive next's to fail..
>
> Should be reproducable with any file with more than two bytes.
> |file|
> file := (Filename named: 'test.txt') reading encoding: #UTF16.
> [file get] ensure: [file close]
>
> Cheers,
> Henry
>
>
>
>
> _______________________________________________
> vwnc mailing list
>
[hidden email]
>
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc