summaryrefslogtreecommitdiffstats
path: root/base/test
diff options
context:
space:
mode:
Diffstat (limited to 'base/test')
-rw-r--r--base/test/test_suite.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/test/test_suite.cc b/base/test/test_suite.cc
index 24af4e1..6739a4e 100644
--- a/base/test/test_suite.cc
+++ b/base/test/test_suite.cc
@@ -79,6 +79,9 @@ TestSuite::TestSuite(int argc, char** argv) {
CommandLine::Init(argc, argv);
testing::InitGoogleTest(&argc, argv);
#if defined(OS_LINUX) && defined(USE_AURA)
+ // When calling native char conversion functions (e.g wrctomb) we need to
+ // have the locale set. In the absence of such a call the "C" locale is the
+ // default. In the gtk code (below) gtk_init() implicitly sets a locale.
setlocale(LC_ALL, "");
#elif defined(TOOLKIT_USES_GTK)
gtk_init_check(&argc, &argv);