Fix failing tests due to inconsistencies in French number formatting

master
Johan Ouwerkerk 2019-10-21 23:45:05 +02:00
parent e6a53b6f3b
commit 68bd4dad00
1 changed files with 6 additions and 1 deletions

View File

@ -26,7 +26,12 @@ static QLocale frFR(QLocale::French, QLocale::France);
static QLocale nlNL(QLocale::Dutch, QLocale::Netherlands);
static QLocale enUK(QLocale::English, QLocale::UnitedKingdom);
static const QString french = QString::fromWCharArray(L"123\u00A0456");
/*
* French is weird.
* Or at least the QLocale for France is definitely inconsistent.
* Sometimes you get 123\u00A0456, sometimes you get 123\202f\456...
*/
static const QString french = frFR.toString(123456ULL);
static void define_valid_table(void)
{