[squeak-dev] The Trunk: Collections-dtl.560.mcz

David T. Lewis lewis at mail.msen.com
Fri Jan 17 05:25:49 UTC 2014


On Thu, Jan 16, 2014 at 11:48:59PM -0500, David T. Lewis wrote:
> 
> On Thu, Jan 16, 2014 at 09:05:31PM -0600, Chris Muller wrote:
> > 
> > Thanks Dave, unfortunately I still cannot open this revised "Working
> > With Squeak".
> > 
> > File this method into trunk updated with this fix and then try to open
> > Help | Welcome Workspaces | Working with Squeak.
> > 
> > Same works after filing this method into Squeak4.5-13352 from the ftp
> > site or even 4.4.
> 
> Urk.
> 
> When I load the updated #workingWithSqueak, then step through this in
> a debugger:
> 
>   TheWorldMainDockingBar new workingWithSqueak
> 
> then I look at the string that is being converted to text with
> readStream nextChunkText, it seems that the string contains a bunch
> of trailing null characters at the end of the RunArray. This does not
> seem right. That said, the original version of RunaArray>>scanFrom:
> would have eaten all those nulls without complaining, which is presumably
> why it runs in Squeak4.5-13352.
> 
> How was the source for this version of #workingWithSqueak created? I am
> worried that I might have broken something in the writeScanOn: methods
> for TextAttributes that might have led to generating corrupt source
> code for the workingWithSqueak method ... I hope not :-(

And when I remove the embedded null characters from the source code of the
workingWithSqueak method (attached), it works as expected. So the problem
may be in whatever generated the string that is used in the workingWithSqueak
method.

Dave

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TheWorldMainDockingBar-workingWithSqueak.st.gz
Type: application/octet-stream
Size: 1753 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140117/bc667ba2/TheWorldMainDockingBar-workingWithSqueak.st.obj


More information about the Squeak-dev mailing list