summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-03-30 09:38:17 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-03-30 10:06:56 (GMT)
commitdcdafbcb132341bb22b6159f0f1dea1ef00f7c18 (patch)
tree29aca268024a8ae0d5a3aa8032e69690e264c428 /tools
parent5ef6ac6550f1692d66611e7918d85c7ebedda439 (diff)
downloadQt-dcdafbcb132341bb22b6159f0f1dea1ef00f7c18.zip
Qt-dcdafbcb132341bb22b6159f0f1dea1ef00f7c18.tar.gz
Qt-dcdafbcb132341bb22b6159f0f1dea1ef00f7c18.tar.bz2
String-to-number conversion functions should ignore trailing whitespaces.
According to our documentation we should ignore leading and trailing whitespaces when converting a string to number with QLocale::toInt and similar functions. However that didn't work for some locales - for those ones that declare groupseparator as 0xa0 (which looks similar to space) since we provide a workaround to accept space as a group separator for those locales. And since the workaround was there for a long time it doesn't make sense to change the behavior and the fix is to explicitely remove leading and trailing whitespaces before doing any conversion. Reviewed-by: mariusSO
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions