summaryrefslogtreecommitdiff
path: root/test/translationtest.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-12-23 21:10:54 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2020-12-23 22:35:52 +0100
commitdce64999d3325c5b55499d6ba657066efa48fbff (patch)
tree6b515b1d6a5b2caf63e0e7b180259cfba3a08e8a /test/translationtest.cc
parent7df0197c7fb39650a7a428eb3b28e8f289ad54d3 (diff)
Fix unit-test compilation on windows.
Diffstat (limited to 'test/translationtest.cc')
-rw-r--r--test/translationtest.cc4
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