Re: Fwd: Re: Javascript and konq crash

Harri Porten <[email protected]>
Newsgroups gmane.comp.kde.devel.konq-e,gmane.comp.kde.devel.kfm
Message-ID <[email protected]>
On Sat, 25 Mar 2006, Eva Brucherseifer wrote:

>> The dtoa code is really quite intricated.
>> It seem to be called from a single point in kjs, in ustring.
>> Perhaps for testing purposes another conversion method (with sprintf or a
>> stringstream) could be used. If that works, the problem is indeed in dtoa.

The dtoa code was added by Apple as it makes some floating point 
operations work the way they are specified in the standard. It looks like 
it was taken from a rather ancient library though so it's not necessary 
portable to today's hardware. Had to fix something for the Alpha 
architecture already.

It should indeed by safe to just circumvent the calls into the library 
routines and do simple conversions. They regressions should be 
neglectable. Just study older versions of KJS to see how it was done.

Harri.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.