[Pharo-project] UTF16TextConverter problem in 1.1
Pharo image: Pharo Pharo core version: Pharo-1.1-11367-Beta Virtual machine used: Squeak 4.2.4beta1U (Mac OS X) The following code has the String 'test' as its result in Pharo 1.0: | converter test | converter := UTF16TextConverter new. converter useLittleEndian: SmalltalkImage current isLittleEndian. test := ('test' convertToWithConverter: converter). test convertFromWithConverter: converter In 1.1, the result is a String with the Characters 29696, 25856, 29440, 29696, which is wrong.
http://code.google.com/p/pharo/issues/detail?id=2516 Stef On Jun 7, 2010, at 1:34 PM, Stéphane Ducasse wrote:
Pharo image: Pharo Pharo core version: Pharo-1.1-11367-Beta Virtual machine used: Squeak 4.2.4beta1U (Mac OS X)
The following code has the String 'test' as its result in Pharo 1.0:
| converter test | converter := UTF16TextConverter new. converter useLittleEndian: SmalltalkImage current isLittleEndian. test := ('test' convertToWithConverter: converter). test convertFromWithConverter: converter
In 1.1, the result is a String with the Characters 29696, 25856, 29440, 29696, which is wrong.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
SLICE-Issue-2516-UTF16Latin1EncodingsNotRespectingByteOrder in Inbox. Cheers, Henry On Jun 7, 2010, at 1:36 41PM, Stéphane Ducasse wrote:
http://code.google.com/p/pharo/issues/detail?id=2516
Stef
On Jun 7, 2010, at 1:34 PM, Stéphane Ducasse wrote:
Pharo image: Pharo Pharo core version: Pharo-1.1-11367-Beta Virtual machine used: Squeak 4.2.4beta1U (Mac OS X)
The following code has the String 'test' as its result in Pharo 1.0:
| converter test | converter := UTF16TextConverter new. converter useLittleEndian: SmalltalkImage current isLittleEndian. test := ('test' convertToWithConverter: converter). test convertFromWithConverter: converter
In 1.1, the result is a String with the Characters 29696, 25856, 29440, 29696, which is wrong.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (2)
-
Henrik Johansen -
Stéphane Ducasse