https://bugs.freedesktop.org/show_bug.cgi?id=64140

--- Comment #9 from Patrick Ohly <[email protected]> ---
Eugenio, FYI...

In your Search.All.txt there was another bug: 111 must come before 1月 when
using the Japanese collation. SyncEvolution was returning 1月 before 111 when
using POSIX. Choosing ja_JP.UTF-8 as locale also fixes the sorting.

I've added a testpim.py tests for Japanese. Adding more test cases for other
regions will be simple, someone just needs to define test cases, searches and
expected results:

    @timeout(60)
    @property("ENV", "LC_TYPE=ja_JP.UTF-8 LC_ALL=ja_JP.UTF-8 LANG=ja_JP.UTF-8")
    def testFilterJapanese(self):
         self.doFilter([u'''BEGIN:VCARD
VERSION:3.0
FN:1月
N:1月;;;04;
END:VCARD
''',

u'''BEGIN:VCARD
VERSION:3.0
FN:111
N:111;;;54;
END:VCARD
''',

u'''BEGIN:VCARD
VERSION:3.0
FN:Bad
N:Bad;;;08;
END:VCARD
'''
],
                       # All contacts.
                       ('111', u'1月', 'Bad'),
                       # Query + expected results.
                       (([], ('111', u'1月', 'Bad')),
                        ([['any-contains', '1']], ('111', u'1月')),
                        ([['any-contains', u'1月']], (u'1月',)))
                       )

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Syncevolution-issues mailing list
[email protected]
https://lists.syncevolution.org/mailman/listinfo/syncevolution-issues

Reply via email to