mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue