gjs r98 - in trunk: gjs test
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gjs r98 - in trunk: gjs test
- Date: Wed, 12 Nov 2008 16:00:06 +0000 (UTC)
Author: johan
Date: Wed Nov 12 16:00:06 2008
New Revision: 98
URL: http://svn.gnome.org/viewvc/gjs?rev=98&view=rev
Log:
Call setlocale(), so we can get filename/locale conversion right
Modified:
trunk/gjs/console.c
trunk/test/gjs-unit.c
Modified: trunk/gjs/console.c
==============================================================================
--- trunk/gjs/console.c (original)
+++ trunk/gjs/console.c Wed Nov 12 16:00:06 2008
@@ -23,6 +23,7 @@
#include <config.h>
#include <stdlib.h>
+#include <locale.h>
#include <util/log.h>
#include <gjs/context.h>
@@ -56,6 +57,7 @@
exit(1);
}
+ setlocale(LC_ALL, "");
g_type_init();
error = NULL;
Modified: trunk/test/gjs-unit.c
==============================================================================
--- trunk/test/gjs-unit.c (original)
+++ trunk/test/gjs-unit.c Wed Nov 12 16:00:06 2008
@@ -25,6 +25,7 @@
#include <glib.h>
#include <gjs/gjs.h>
+#include <locale.h>
#include <string.h>
@@ -106,6 +107,7 @@
/* need ${top_srcdir} later */
top_srcdir = g_getenv ("TOP_SRCDIR");
+ setlocale(LC_ALL, "");
g_test_init(&argc, &argv, NULL);
g_type_init();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]