diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2017-02-28 12:03:46 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2017-03-09 19:27:13 +0000 |
commit | 9ed389bf15787266c207435d712b9e225db07ad9 (patch) | |
tree | bdebf460ba6a6d6dfa6dc8456415f1ed3e556d99 /src/corelib/arch | |
parent | 326f1fdb7d6550a529217b226cbef78425d32969 (diff) |
Bugfix in QDateTimeParser's findTextEntry()
If a later month-or-day were to have a name that's a prefix of an
earlier one's name, the code would have selected the longer name as
best match when the text matched is the shorter name, simply because
it found that one first. (Found, on Turkish Cuma(rtesi)? in Thiago's
recent new test, by reversing the loop that iterated the list.)
Make an exact match win and a match of a full name beat any prefix
match of the same length.
Change-Id: I8d954b83ccc25e4f47af2e558036d714685cef5e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/arch')
0 files changed, 0 insertions, 0 deletions