aboutsummaryrefslogtreecommitdiff
path: root/test/unit/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/main.cpp')
-rw-r--r--test/unit/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/main.cpp b/test/unit/main.cpp
index ffa95e03..f24a7aa6 100644
--- a/test/unit/main.cpp
+++ b/test/unit/main.cpp
@@ -26,9 +26,14 @@
* DEALINGS IN THE SOFTWARE.
****************************************************************************/
+#include <locale>
+
#include "gtest_include.h"
GTEST_API_ int main(int argc, char **argv) {
+ // Use a potentially non-C locale to make sure we are robust
+ setlocale(LC_ALL, "");
+
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}