[squeak-dev] Xtreams files

Yoshiki Ohshima yoshiki at vpri.org
Tue Oct 12 22:04:43 UTC 2010


At Tue, 12 Oct 2010 23:35:36 +0200,
Sven Van Caekenberghe wrote:
> 
> Levente,
> 
> On 12 Oct 2010, at 23:08, Levente Uzonyi wrote:
> 
> > Oh. I "fixed" those yesterday. The problem is that UTF16TextConverters are not initialized to the platform's endianness, but the test expects that.
> 
> OK, so UTF16TextConverters>>#useLittleEndian: should be called with Smalltalk isLittleEndian as argument, yes ? 
> Who ? The client, XTSqueakEncoder>>#encoding: could do it, but not very elegantly. Or would it be better done in an initialize (that is not there) ?

  Hmm, doesn't it sound like the test is wrong?  The endianness in
UTF16 means the order in two-octet for each code-point.  The external
data comes as Byte(Array|String) and internal is UTF-32-ish data, so
the platform endianness should not matter.

-- Yoshiki



More information about the Squeak-dev mailing list