From efce88b97b2c36461d1abbab6f2efbcc5ab9c341 Mon Sep 17 00:00:00 2001 From: leper Date: Mon, 22 Dec 2014 00:23:07 +0000 Subject: [PATCH] Call setlocale(3) on BSDs so that we can log unicode strings. Patch by Teiresias. Fixes #1142. This was SVN commit r16058. --- source/test_setup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/test_setup.cpp b/source/test_setup.cpp index 870e58a587..448a650df9 100644 --- a/source/test_setup.cpp +++ b/source/test_setup.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2012 Wildfire Games. +/* Copyright (C) 2014 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -73,7 +73,7 @@ class MiscSetup : public CxxTest::GlobalFixture // Timer must be initialised, else things will break when tests do IO timer_LatchStartTime(); -#if OS_MACOSX +#if OS_MACOSX || OS_BSD // See comment in GameSetup.cpp FixLocales setlocale(LC_CTYPE, "UTF-8"); #endif