Fwd: Re: Javascript and konq crash

Harri Porten porten at froglogic.com
Sat Mar 25 19:41:22 GMT 2006


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.



More information about the kfm-devel mailing list