Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(985)

Unified Diff: content/ppapi_plugin/ppapi_plugin_main.cc

Issue 11420012: Merge 167552 - ChromeOS needs UTF-8 appended to locale. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1271/src/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/ppapi_plugin/ppapi_plugin_main.cc
===================================================================
--- content/ppapi_plugin/ppapi_plugin_main.cc (revision 167976)
+++ content/ppapi_plugin/ppapi_plugin_main.cc (working copy)
@@ -66,8 +66,8 @@
// http://crbug.com/155671
//
// ICU can accept "en-US" or "en_US", but POSIX wants "en_US".
- // TODO(shess): "en_US.UTF-8" might be even better.
std::replace(locale.begin(), locale.end(), '-', '_');
+ locale.append(".UTF-8");
setlocale(LC_ALL, locale.c_str());
setenv("LANG", locale.c_str(), 0);
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698