TextConverter 1.2 bug

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

TextConverter 1.2 bug

Stéphane Ducasse
Hi guys

when I execute
        CP1252TextConverter new in 1.1 it works
Now in 1.2 I get DNU charcode


CP1252TextConverter>>nextPut: aCharacter toStream: aStream
        aStream isBinary ifTrue: [^ aCharacter storeBinaryOn: aStream].
        aCharacter charCode < 128
                ifTrue: [aStream basicNextPut: aCharacter]
                ifFalse: [aStream basicNextPut: ((Character value: (self fromSqueak: aCharacter) charCode))].

aCharacter = $^
(self fromSqueak: aCharacter) = 128

Does anybody have an idea?

Thanks in advance.

Stef


Reply | Threaded
Open this post in threaded view
|

Re: TextConverter 1.2 bug

Igor Stasenko
On 19 January 2011 21:37, Stéphane Ducasse <[hidden email]> wrote:
> Hi guys
>
> when I execute
>        CP1252TextConverter new in 1.1 it works
> Now in 1.2 I get DNU charcode

charcode or charCode?

Character>>charCode

        ^ (value bitAnd: 16r3FFFFF).

is in Pharo1.2-12306

>
>
> CP1252TextConverter>>nextPut: aCharacter toStream: aStream
>        aStream isBinary ifTrue: [^ aCharacter storeBinaryOn: aStream].
>        aCharacter charCode < 128
>                ifTrue: [aStream basicNextPut: aCharacter]
>                ifFalse: [aStream basicNextPut: ((Character value: (self fromSqueak: aCharacter) charCode))].
>
> aCharacter = $^
> (self fromSqueak: aCharacter) = 128
>
> Does anybody have an idea?
>
> Thanks in advance.
>
> Stef
>
>
>



--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

Re: TextConverter 1.2 bug

Stéphane Ducasse
It was in an old converter that was loaded by soup and overriding the code ....

Stef
On Jan 19, 2011, at 9:56 PM, Igor Stasenko wrote:

> On 19 January 2011 21:37, Stéphane Ducasse <[hidden email]> wrote:
>> Hi guys
>>
>> when I execute
>>        CP1252TextConverter new in 1.1 it works
>> Now in 1.2 I get DNU charcode
>
> charcode or charCode?
>
> Character>>charCode
>
> ^ (value bitAnd: 16r3FFFFF).
>
> is in Pharo1.2-12306
>
>>
>>
>> CP1252TextConverter>>nextPut: aCharacter toStream: aStream
>>        aStream isBinary ifTrue: [^ aCharacter storeBinaryOn: aStream].
>>        aCharacter charCode < 128
>>                ifTrue: [aStream basicNextPut: aCharacter]
>>                ifFalse: [aStream basicNextPut: ((Character value: (self fromSqueak: aCharacter) charCode))].
>>
>> aCharacter = $^
>> (self fromSqueak: aCharacter) = 128
>>
>> Does anybody have an idea?
>>
>> Thanks in advance.
>>
>> Stef
>>
>>
>>
>
>
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>