$ make test
$ LC_ALL=C make test
$ LC_ALL=de_DE.UTF-8 make test
Details
Details
- Reviewers
elvisangelaccio - Group Reviewers
Baloo Frameworks - Commits
- R824:469037b96b20: filemetadatawidgettest: Enforce en_US locale
Diff Detail
Diff Detail
- Repository
- R824 Baloo Widgets
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Not at all. I'm totally confused by this. qputenv() does work in other repos but not in this one. (????)
Comment Actions
Ok, I tried to move qputenv() in initLocale() and that worked (indeed, qputenv() internally calls setenv()).
So it seems that we just need to call it before main().
What are these other repositories you are talking about? I did a quick check in kdirmodeltest.cpp from kio and that looks equally broken.
Comment Actions
kio/autotests/favicontest.cpp
$ ctest -V -R icon $ LC_ALL=C ctest -V -R icon $ LC_ALL=de_DE.UTF-8 ctest -V -R icon
all pass
Comment Actions
Many KIO tests also fail for me unless I explicitly set a locale. Can we have a more generic solution for that in e.g. ecm or so?
Comment Actions
I still don't understand what's the difference between this test and the kio ones, but this fixes the problem so I'd say let's go with it for now.