Review Request: kjs: Fix UString::toDouble not cutting-off leading unicode spaces

Commit Hook null at kde.org
Tue May 29 18:24:07 BST 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/104858/#review14275
-----------------------------------------------------------


This review has been submitted with commit 68c524b1301d3d07d240230a85adf7f100483128 by Bernd Buschinski to branch KDE/4.8.

- Commit Hook


On May 21, 2012, 12:42 p.m., Bernd Buschinski wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/104858/
> -----------------------------------------------------------
> 
> (Updated May 21, 2012, 12:42 p.m.)
> 
> 
> Review request for kdelibs.
> 
> 
> Description
> -------
> 
> kjs: Fix parseFloat not cutting-off leading unicode spaces
> 
> parseInt cuts away the leading spaces, like it should, but we don't to it for parseFloat, like we should.
> UString::toDouble does remove leading spaces, but only ascii spaces, no unicodespaces.
> 
> ECMA 15.1.2.3 Step 2 confirms that leading spaces should be cut
> 
> depends on https://git.reviewboard.kde.org/r/104855/
> 
> 
> Diffs
> -----
> 
>   kjs/ustring.cpp 136efb5 
> 
> Diff: http://git.reviewboard.kde.org/r/104858/diff/
> 
> 
> Testing
> -------
> 
> Fixes a couple of ecma parseFloat tests
> 
> 
> Thanks,
> 
> Bernd Buschinski
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20120529/dc09ecaf/attachment.htm>


More information about the kde-core-devel mailing list