diff options
author | saintlou@chromium.org <saintlou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-09 22:13:02 +0000 |
---|---|---|
committer | saintlou@chromium.org <saintlou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-09 22:13:02 +0000 |
commit | cb2d19245f805d6c0acdce42f3b26757494427d1 (patch) | |
tree | be8e12d48fccb016a3383e759246aee1536427e2 /base | |
parent | 60f06907bad9fad44fd4b9cc1cb9eace8b022ab8 (diff) | |
download | chromium_src-cb2d19245f805d6c0acdce42f3b26757494427d1.zip chromium_src-cb2d19245f805d6c0acdce42f3b26757494427d1.tar.gz chromium_src-cb2d19245f805d6c0acdce42f3b26757494427d1.tar.bz2 |
Added comments to setlocale call.
BUG=106725
TEST=RTLTest.WrapPathWithLTRFormatting on Aura/Linux.
Review URL: http://codereview.chromium.org/8894007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113853 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/test/test_suite.cc | 3 |
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); |