Index: chrome/app/chrome_dll_main.cc |
=================================================================== |
--- chrome/app/chrome_dll_main.cc (revision 24387) |
+++ chrome/app/chrome_dll_main.cc (working copy) |
@@ -16,6 +16,7 @@ |
#include <malloc.h> |
#include <new.h> |
#elif defined(OS_POSIX) |
+#include <locale.h> |
#include <signal.h> |
#include <sys/types.h> |
#include <sys/stat.h> |
@@ -329,6 +330,12 @@ |
#endif |
#endif |
+#if defined(OS_POSIX) |
+ // Set C library locale to make sure CommandLine can parse argument values |
+ // in correct encoding. |
+ setlocale(LC_ALL, ""); |
+#endif |
+ |
// Initialize the command line. |
#if defined(OS_WIN) |
CommandLine::Init(0, NULL); |