summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorjshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-24 21:51:33 +0000
committerjshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-24 21:51:33 +0000
commite6acd67c05952b07e9f2bbb10f9ea5a43907392b (patch)
treeecfca154737302a19e5032d09172f8101ac06376 /chrome/renderer
parent28b4f9bc980da2e69c3edcee374948bae0c5f8ac (diff)
downloadchromium_src-e6acd67c05952b07e9f2bbb10f9ea5a43907392b.zip
chromium_src-e6acd67c05952b07e9f2bbb10f9ea5a43907392b.tar.gz
chromium_src-e6acd67c05952b07e9f2bbb10f9ea5a43907392b.tar.bz2
Move setlocale() to zygote_main_linux to make sure that it's called
before the sandbox is triggered. BUG=16860 (http://crbug.com/16860 ) TEST=Run Chrome with LC_ALL=en_US.UTF-8. 1. Make sure that you don't see any warning about 'setlocale failing'. 2. Upload a file whose name contains non-ASCII characters in UTF-8 (e.g. "café.txt" or "一二.txt" ) . The filename field in a form should be populated with the name (rather than empty). Review URL: http://codereview.chromium.org/160112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21586 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/renderer_main_platform_delegate_linux.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/chrome/renderer/renderer_main_platform_delegate_linux.cc b/chrome/renderer/renderer_main_platform_delegate_linux.cc
index 637f749..34e04d2 100644
--- a/chrome/renderer/renderer_main_platform_delegate_linux.cc
+++ b/chrome/renderer/renderer_main_platform_delegate_linux.cc
@@ -17,9 +17,6 @@ RendererMainPlatformDelegate::~RendererMainPlatformDelegate() {
}
void RendererMainPlatformDelegate::PlatformInitialize() {
- // To make wcstombs/mbstowcs work in a renderer.
- const char* locale = setlocale(LC_ALL, "");
- LOG_IF(WARNING, locale == NULL) << "setlocale failed.";
}
void RendererMainPlatformDelegate::PlatformUninitialize() {