[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/kjs
From:       Maks Orlovich <maksim () kde ! org>
Date:       2006-08-14 13:03:56
Message-ID: 1155560636.289199.12422.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 572947 by orlovich:

Fix locale-dependence in the parser. Thanks to Fredrik Johansson 
for reminding me of it and testing the fix.
BUG:126482


 M  +2 -1      lexer.cpp  


--- branches/KDE/3.5/kdelibs/kjs/lexer.cpp #572946:572947
@@ -39,6 +39,7 @@
 #include "identifier.h"
 #include "lookup.h"
 #include "internal.h"
+#include "dtoa.h"
 
 // we can't specify the namespace in yacc's C output, so do it here
 using namespace KJS;
@@ -453,7 +454,7 @@
 
   long double dval = 0;
   if (state == Number) {
-    dval = strtod(buffer8, 0L);
+    dval = kjs_strtod(buffer8, 0L);
   } else if (state == Hex) { // scan hex numbers
     dval = 0;
     if (buffer8[0] == '0' && (buffer8[1] == 'x' || buffer8[1] == 'X')) {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic