tests: make profile test work with non-C locales
For reasons unknown to me, the profile test is executed with a weird locale, resulting in wrong formatting. By setting the locale manually to "C", the tests start to work. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
adaa52bf9b
commit
ca5f28206b
@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
void TestProfile::init()
|
void TestProfile::init()
|
||||||
{
|
{
|
||||||
|
setlocale(LC_ALL, "C");
|
||||||
|
|
||||||
// Set UTF8 text codec as in real applications
|
// Set UTF8 text codec as in real applications
|
||||||
QTextCodec::setCodecForLocale(QTextCodec::codecForMib(106));
|
QTextCodec::setCodecForLocale(QTextCodec::codecForMib(106));
|
||||||
// first, setup the preferences
|
// first, setup the preferences
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user