Title: [104792] trunk/Source/WebKit2
- Revision
- 104792
- Author
- [email protected]
- Date
- 2012-01-11 22:58:58 -0800 (Wed, 11 Jan 2012)
Log Message
[GTK] Web process should use the same locale than UI process
https://bugs.webkit.org/show_bug.cgi?id=76054
Reviewed by Gustavo Noronha Silva.
* UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
(WebKit::childSetupFunction): Make child process use the same
locale than its parent.
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (104791 => 104792)
--- trunk/Source/WebKit2/ChangeLog 2012-01-12 06:47:47 UTC (rev 104791)
+++ trunk/Source/WebKit2/ChangeLog 2012-01-12 06:58:58 UTC (rev 104792)
@@ -1,3 +1,14 @@
+2012-01-11 Carlos Garcia Campos <[email protected]>
+
+ [GTK] Web process should use the same locale than UI process
+ https://bugs.webkit.org/show_bug.cgi?id=76054
+
+ Reviewed by Gustavo Noronha Silva.
+
+ * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
+ (WebKit::childSetupFunction): Make child process use the same
+ locale than its parent.
+
2012-01-11 Ryuan Choi <[email protected]>
[WK2] Share cairo specific codes with EFL port.
Modified: trunk/Source/WebKit2/UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp (104791 => 104792)
--- trunk/Source/WebKit2/UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp 2012-01-12 06:47:47 UTC (rev 104791)
+++ trunk/Source/WebKit2/UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp 2012-01-12 06:58:58 UTC (rev 104792)
@@ -32,6 +32,7 @@
#include <WebCore/FileSystem.h>
#include <WebCore/ResourceHandle.h>
#include <errno.h>
+#include <locale.h>
#if OS(LINUX)
#include <sys/prctl.h>
#endif
@@ -58,6 +59,9 @@
int socket = GPOINTER_TO_INT(userData);
close(socket);
+ // Make child process inherit parent's locale.
+ g_setenv("LC_ALL", setlocale(LC_ALL, 0), TRUE);
+
#if OS(LINUX)
// Kill child process when parent dies.
prctl(PR_SET_PDEATHSIG, SIGKILL);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes