[Bug 279174] Long/short weekday date format specifiers sharing a common word stem are interpreted incorrectly

John Layt jlayt at kde.org
Wed Aug 3 18:54:40 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=279174


John Layt <jlayt at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




--- Comment #4 from John Layt <jlayt kde org>  2011-08-03 18:54:40 ---
Hmmm.  Nothing has changed in the code since 4.6, so this should also be a
problem under 4.6, and I don't think I changed that method in the big rewrite
for 4.6 either so could have been around for ages.  Perhaps the translations
were changed?  Dunno.

That said, the userToPosix() method is indeed naive and the root cause of the
problem.  It takes the first match found in the format translation map rather
than looking for the longest match.  A quick fix is to sort the format map by
string length so it tries the longest strings first.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the kde-i18n-de mailing list