[Cuis-dev] Saving StyledText.pck.st seems to corrupt it

Juan Vuletich juan at cuis.st
Mon Mar 27 07:05:44 PDT 2023


On 3/27/2023 11:01 AM, Juan Vuletich via Cuis-dev wrote:
> Yes. That method used a String to store bytes. It was a common 
> practice in the old days, but it breaks with UTF-8. It is best to use 
> ByteArrays for that.
>
> On 3/25/2023 2:55 PM, Bernhard Pieber via Cuis-dev wrote:
>> I just realised that this is probably no corruption but just a 
>> conversion to UTF-8. The method #testOldInstanceDeserialization is a 
>> special method which contains binary data. In any case the package 
>> file could be installed without problems in a new image.
>>
>> Sorry for the noise.
>>
>> The testOldInstanceDeserialization test fails, though, as do many 
>> others (mostly having to do with pasting and RTF conversion).
>>
>> Bernhard
>>

And yes, STE requires some care. I'll keep it in mind.

Thanks,

-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230327/c98a0d5b/attachment.htm>


More information about the Cuis-dev mailing list