diff options
author | Eike Rathke <erack@redhat.com> | 2013-03-19 23:23:16 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-03-19 23:36:02 +0100 |
commit | 9e9f39d171cafa035d7b8e74187e25c3581cb89d (patch) | |
tree | 7b2c1f2c19354c059f8c763b309b0b774c89534d /starmath | |
parent | 9d64e7f2b723a7bc711c2acc8da99944b30761ef (diff) |
resolved rhbz#919020 Basic CDbl() and CSng() scan localized number
Code wrongly replaced decimal separator with '.' and used atof() to scan
the number string which itself may be localized on *iX systems but not
on Windows. Hence on *iX the numbers may had been truncated where on
Windows they were not.
Additionally made this work with Unicode separators if defined for the
locale, removed the awkward conversion to ASCII byte string and
eliminated use of toupper() and isdigit() calls. Also eliminated a
possible buffer overflow.
Change-Id: Ic3f791601c321ef1386fe51a5244d3dacac3d908
Diffstat (limited to 'starmath')
0 files changed, 0 insertions, 0 deletions