Index: base/test/test_suite.cc |
diff --git a/base/test/test_suite.cc b/base/test/test_suite.cc |
index 24af4e14c2e71efa001cee5374772d1a7c603741..6739a4e2f7d3df2e8a066744dd9d52e063a5c6b2 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); |