From 45ec096672a67db01d29f78e7e910bebab36e31b Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Thu, 15 Aug 2024 15:29:34 +0200 Subject: [PATCH] Correct Arabic exponent separator in QLocale benchmarks The separator was changed at CLDR v44 to use a plain aleph, U+0623, rather than the U+0627 aleph with hamza above previously used. This is, in both cases, followed by U+0633, "seen". Task-number: QTBUG-121325 Task-number: QTBUG-126060 Pick-to: 6.8 6.7 6.5 Change-Id: I013525e0876c4c47111846135c9311e7b3442dd3 Reviewed-by: Thiago Macieira --- .../benchmarks/corelib/text/qlocale/tst_bench_qlocale.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/benchmarks/corelib/text/qlocale/tst_bench_qlocale.cpp b/tests/benchmarks/corelib/text/qlocale/tst_bench_qlocale.cpp index 1f3a0802221..5ebd0c0804f 100644 --- a/tests/benchmarks/corelib/text/qlocale/tst_bench_qlocale.cpp +++ b/tests/benchmarks/corelib/text/qlocale/tst_bench_qlocale.cpp @@ -555,13 +555,13 @@ void tst_QLocale::toDouble_data() QTest::newRow("se_NO: 4x-3") // Only first character of exponent << u"4\u00b7\u2212" "03"_s << u"se_NO"_s << false << 0.0; QTest::newRow("ar_EG: 4e-3") // Arabic, Egypt - << u"\u0664\u0627\u0633\u061c-\u0660\u0663"_s << u"ar_EG"_s << true << 4e-3; + << u"\u0664\u0623\u0633\u061c-\u0660\u0663"_s << u"ar_EG"_s << true << 4e-3; QTest::newRow("ar_EG: 4x-3") // Only first character of exponent - << u"\u0664\u0627\u061c-\u0660\u0663"_s << u"ar_EG"_s << false << 0.0; + << u"\u0664\u0623\u061c-\u0660\u0663"_s << u"ar_EG"_s << false << 0.0; QTest::newRow("ar_EG: 4e!3") // Only first character of sign - << u"\u0664\u0627\u0633\u061c\u0660\u0663"_s << u"ar_EG"_s << false << 0.0; + << u"\u0664\u0623\u0633\u061c\u0660\u0663"_s << u"ar_EG"_s << false << 0.0; QTest::newRow("ar_EG: 4x!3") // Only first character of sign and exponent - << u"\u0664\u0627\u061c\u0660\u0663"_s << u"ar_EG"_s << false << 0.0; + << u"\u0664\u0623\u061c\u0660\u0663"_s << u"ar_EG"_s << false << 0.0; } void tst_QLocale::toDouble()