On Wed, Dec 17, 2014 at 7:54 PM, Sven Van Caekenberghe <sven@stfx.eu> wrote:

> On 17 Dec 2014, at 19:42, sheridan@sheridan-mahoney.com wrote:
>
>
> Hi there,
>
> I am still working my way through MultiByteFileStream tests, and have come across the messages #converter and #converter: .�� I would like to be able to test these - could someone explain briefly how the converters are used in this class?

In order to convert from bytes to characters and vice versa, MultiByteFileStream uses a TextConverter subclass instance as a helper. The messages #nextFromStream: and #nextPut:onStream: are the main interface between the two.

This guy is loudly crying for a decorator. I wonder when Xtreams could be pushed...
��

The silly thing is that both MultiByteFileStream and TextConverter convert from wrongly encoded strings to correctly encoded strings.

So it corrects encodings? :P I didn't know that! They are flawless!!!
��
ZnCharacter[Read|Write]Stream and ZnCharacterEncoder do the correct thing.

Sven