diff options
author | Mike FABIAN <mike.fabian@basyskom.de> | 2010-12-23 13:46:50 +0100 |
---|---|---|
committer | Mike FABIAN <mike.fabian@basyskom.de> | 2010-12-23 19:20:38 +0100 |
commit | 671691f5ce622cd06be42463e4586eefd3a47ca5 (patch) | |
tree | aa7203fc403da62aae13ca0fd4aea097bc93597e /tests | |
parent | 71a1f9dfb6fa06778e80ceefd51e527201c62961 (diff) |
Changes: fix problem with Turkish i, make it go correctly to the İ bucket
RevBy: John Tapsell
Details:
The locale aware toUpper() needs to use the collate locale here,
not the message locale.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ft_locales/ft_locales.cpp | 84 |
1 files changed, 74 insertions, 10 deletions
diff --git a/tests/ft_locales/ft_locales.cpp b/tests/ft_locales/ft_locales.cpp index 1f16d085..b94d8933 100644 --- a/tests/ft_locales/ft_locales.cpp +++ b/tests/ft_locales/ft_locales.cpp @@ -1027,28 +1027,92 @@ void Ft_Locales::testMLocaleIndexBucket_data() QTest::newRow("de_DE") <<"ja_JP" <<"de_DE" - <<(QStringList()<<"cote"<<"coté"<<"côte"<<"côté"<<"ö"<<"Ö"<<"öe"<<"Öe"<<"ÖE"<<"s"<<"S"<<"ß"<<"ẞ"<<"test"<<"Test"<<"z"<<"Z"<<"zx"<<"Zx"<<"ZX"<<"沙紀") - <<(QStringList()<<"C" <<"C" <<"C" <<"C" <<"O"<<"O"<<"O" <<"O" <<"O" <<"S"<<"S"<<"S"<<"S"<<"T" <<"T" <<"Z"<<"Z"<<"Z" <<"Z" <<"Z" <<"沙"); + <<(QStringList() + <<"ç"<<"Ç"<<"cote"<<"coté"<<"côte"<<"côté" + <<"ö"<<"Ö"<<"öe"<<"Öe"<<"ÖE" + <<"s"<<"S"<<"ß"<<"ẞ"<<"test"<<"Test"<<"z"<<"Z"<<"zx"<<"Zx"<<"ZX"<<"沙紀") + <<(QStringList() + <<"C"<<"C"<<"C"<<"C"<<"C"<<"C" + <<"O"<<"O"<<"O" <<"O" <<"O" + <<"S"<<"S"<<"S"<<"S" + <<"T"<<"T" + <<"Z"<<"Z"<<"Z"<<"Z"<<"Z" + <<"沙"); + QTest::newRow("tr_TR") + <<"ja_JP" + <<"tr_TR" + <<(QStringList() + <<"cote"<<"coté"<<"côte"<<"côté" + <<"ç"<<"Ç" + <<"ı"<<"I"<<"i"<<"İ" + <<"ö"<<"Ö"<<"öe"<<"Öe"<<"ÖE" + <<"s"<<"S"<<"ß"<<"ẞ" + <<"test"<<"Test" + <<"z"<<"Z"<<"zx"<<"Zx"<<"ZX" + <<"沙紀") + <<(QStringList() + <<"C"<<"C"<<"C"<<"C" + <<"Ç"<<"Ç" + <<"I"<<"I"<<"İ"<<"İ" + <<"Ö"<<"Ö"<<"Ö"<<"Ö"<<"Ö" + <<"S"<<"S"<<"S"<<"S" + <<"T"<<"T" + <<"Z"<<"Z"<<"Z"<<"Z"<<"Z" + <<"沙"); QTest::newRow("fr_FR") <<"ja_JP" <<"fr_FR" - <<(QStringList()<<"cote"<<"côte"<<"coté"<<"côté"<<"ö"<<"Ö"<<"öe"<<"Öe"<<"ÖE"<<"z"<<"Z"<<"zx"<<"Zx"<<"ZX"<<"沙紀") - <<(QStringList()<<"C" <<"C" <<"C" <<"C" <<"O"<<"O"<<"O" <<"O" <<"O" <<"Z"<<"Z"<<"Z" <<"Z" <<"Z" <<"沙"); + <<(QStringList() + <<"cote"<<"côte"<<"coté"<<"côté" + <<"ö"<<"Ö"<<"öe"<<"Öe"<<"ÖE" + <<"z"<<"Z"<<"zx"<<"Zx"<<"ZX" + <<"沙紀") + <<(QStringList() + <<"C"<<"C"<<"C"<<"C" + <<"O"<<"O"<<"O"<<"O"<<"O" + <<"Z"<<"Z"<<"Z"<<"Z"<<"Z" + <<"沙"); QTest::newRow("cs_CZ") <<"ja_JP" <<"cs_CZ" - <<(QStringList()<<"c"<<"Cc"<<"CC"<<"č"<<"č"<<"Č"<<"h"<<"H"<<"ch"<<"cH"<<"Ch"<<"CH"<<"i"<<"I"<<"ů"<<"Ů"<<"α"<<"Α"<<"ワタシ"<<"沙紀") - <<(QStringList()<<"C"<<"C" <<"C" <<"Č"<<"Č"<<"Č"<<"H"<<"H"<<"CH"<<"CH"<<"CH"<<"CH"<<"I"<<"I"<<"U"<<"U"<<"Α"<<"Α"<<"ワ" <<"沙"); + <<(QStringList() + <<"c"<<"Cc"<<"CC" + <<"č"<<"č"<<"Č" + <<"h"<<"H" + <<"ch"<<"cH"<<"Ch"<<"CH" + <<"i"<<"I" + <<"ů"<<"Ů" + <<"α"<<"Α" + <<"ワタシ" + <<"沙紀") + <<(QStringList() + <<"C"<<"C"<<"C" + <<"Č"<<"Č"<<"Č" + <<"H"<<"H" + <<"CH"<<"CH"<<"CH"<<"CH" + <<"I"<<"I" + <<"U"<<"U" + <<"Α"<<"Α" + <<"ワ" + <<"沙"); QTest::newRow("ar_SA") <<"ja_JP" <<"ar_SA" - <<(QStringList()<<"arabia"<<"zero"<<"ه") - <<(QStringList()<<"A" <<"Z" <<"ه"); + <<(QStringList() + <<"arabia" + <<"zero" + <<"ه") + <<(QStringList() + <<"A" + <<"Z" + <<"ه"); QTest::newRow("fa_IR") <<"ja_JP" <<"fa_IR" - <<(QStringList()<<"ه") - <<(QStringList()<<"ه"); + <<(QStringList() + <<"ه") + <<(QStringList() + <<"ه"); QTest::newRow("ja_JP@collation=standard") <<"de_DE" <<"ja_JP@collation=standard" // collation=standard is default for ja_JP |