UTF16TextConverter problem in 1.1

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

UTF16TextConverter problem in 1.1

Stéphane Ducasse
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
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: UTF16TextConverter problem in 1.1

Stéphane Ducasse
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
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: UTF16TextConverter problem in 1.1

Henrik Sperre Johansen
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
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project