diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-12-23 21:10:54 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-12-23 22:35:52 +0100 |
commit | dce64999d3325c5b55499d6ba657066efa48fbff (patch) | |
tree | 6b515b1d6a5b2caf63e0e7b180259cfba3a08e8a /test/translationtest.cc | |
parent | 7df0197c7fb39650a7a428eb3b28e8f289ad54d3 (diff) |
Fix unit-test compilation on windows.
Diffstat (limited to 'test/translationtest.cc')
-rw-r--r-- | test/translationtest.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/translationtest.cc b/test/translationtest.cc index 98cff11..d99c623 100644 --- a/test/translationtest.cc +++ b/test/translationtest.cc @@ -63,7 +63,11 @@ public: void testFromLocale() { +#ifdef _WIN32 + _putenv_s("LANG", "da_DK.UTF-8"); +#else setenv("LANG", "da_DK.UTF-8", 1); +#endif UITranslation t; // Look up translation from .mo file |