summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2003-08-19 08:11:58 +0000
committerDavid Schleef <ds@schleef.org>2003-08-19 08:11:58 +0000
commit13916dae8f31a8b91e07366f8cc8788ae43a380c (patch)
tree06b1978a6d8746fc5514f626291c9670e49d6425 /tools
parent83bdee27e5f6f939eabe03f705d7b766a407f9dc (diff)
further i18n: call setlocale()
Original commit message from CVS: further i18n: call setlocale()
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-complete.c3
-rw-r--r--tools/gst-compprep.c4
-rw-r--r--tools/gst-launch.c4
-rw-r--r--tools/gst-md5sum.c3
-rw-r--r--tools/gst-register.c3
-rw-r--r--tools/gst-typefind.c3
-rw-r--r--tools/gst-xmlinspect.c3
7 files changed, 23 insertions, 0 deletions
diff --git a/tools/gst-complete.c b/tools/gst-complete.c
index 8e25255cb..092c60fb9 100644
--- a/tools/gst-complete.c
+++ b/tools/gst-complete.c
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
+#include <locale.h>
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -71,6 +72,8 @@ int main(int argc,char *argv[]) {
struct stat stat_buf;
+ setlocale (LC_ALL, "");
+
if(argc<4){
fprintf(stderr,"gst-complete called with invalid arguments\n");
exit(1);
diff --git a/tools/gst-compprep.c b/tools/gst-compprep.c
index f277b528a..345b11060 100644
--- a/tools/gst-compprep.c
+++ b/tools/gst-compprep.c
@@ -2,6 +2,8 @@
# include "config.h"
#endif
+#include <locale.h>
+
#include <gst/gst.h>
GST_DEBUG_CATEGORY_STATIC(debug_compprep);
@@ -18,6 +20,8 @@ int main(int argc,char *argv[]) {
GParamSpec **property_specs;
guint num_properties,i;
+ setlocale (LC_ALL, "");
+
gst_init(&argc,&argv);
GST_DEBUG_CATEGORY_INIT (debug_compprep, "compprep", GST_DEBUG_BOLD, "gst-compprep application");
diff --git a/tools/gst-launch.c b/tools/gst-launch.c
index 104199bfd..5eb22d8b1 100644
--- a/tools/gst-launch.c
+++ b/tools/gst-launch.c
@@ -7,6 +7,8 @@
#include <signal.h>
#include <unistd.h>
#include <sys/wait.h>
+#include <locale.h>
+
#include <gst/gst.h>
/* FIXME: This is just a temporary hack. We should have a better
@@ -312,6 +314,8 @@ main(int argc, char *argv[])
free (malloc (8)); /* -lefence */
+ setlocale(LC_ALL, "");
+
gst_alloc_trace_set_flags_all (GST_ALLOC_TRACE_LIVE);
gst_init_with_popt_table (&argc, &argv, options);
diff --git a/tools/gst-md5sum.c b/tools/gst-md5sum.c
index 12e45ed30..0d28c81eb 100644
--- a/tools/gst-md5sum.c
+++ b/tools/gst-md5sum.c
@@ -5,6 +5,7 @@
#include <string.h>
#include <stdlib.h>
#include <gst/gst.h>
+#include <locale.h>
static guint64 iterations = 0;
static guint64 sum = 0;
@@ -66,6 +67,8 @@ main (int argc, char *argv[])
free (malloc (8)); /* -lefence */
+ setlocale (LC_ALL, "");
+
gst_init_with_popt_table (&argc, &argv, options);
/* make a null-terminated version of argv with ! md5sink appended
diff --git a/tools/gst-register.c b/tools/gst-register.c
index 135995553..534badf83 100644
--- a/tools/gst-register.c
+++ b/tools/gst-register.c
@@ -33,6 +33,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
+#include <locale.h>
extern gboolean _gst_registry_auto_load;
static gint num_features = 0;
@@ -74,6 +75,8 @@ int main (int argc,char *argv[])
GList *registries;
GList *path_spill = NULL; /* used for path spill from failing registries */
+ setlocale(LC_ALL, "");
+
/* Init gst */
_gst_registry_auto_load = FALSE;
gst_init (&argc, &argv);
diff --git a/tools/gst-typefind.c b/tools/gst-typefind.c
index 75ad0a528..9f34c2840 100644
--- a/tools/gst-typefind.c
+++ b/tools/gst-typefind.c
@@ -4,6 +4,7 @@
#include <string.h>
#include <stdlib.h>
+#include <locale.h>
#include <gst/gst.h>
/*
@@ -38,6 +39,8 @@ main (int argc, char *argv[])
GstElement *pipeline;
GstElement *source, *typefind;
+ setlocale (LC_ALL, "");
+
gst_init (&argc, &argv);
if (argc < 2) {
diff --git a/tools/gst-xmlinspect.c b/tools/gst-xmlinspect.c
index ed35ab1c1..f6620e8ae 100644
--- a/tools/gst-xmlinspect.c
+++ b/tools/gst-xmlinspect.c
@@ -5,6 +5,7 @@
#include <gst/gst.h>
#include <gst/control/control.h>
#include <string.h>
+#include <locale.h>
#define PUT_START_TAG(pfx,tag) \
G_STMT_START{ \
@@ -1002,6 +1003,8 @@ main (int argc, char *argv[])
POPT_TABLEEND
};
+ setlocale (LC_ALL, "");
+
gst_init_with_popt_table (&argc, &argv, options);
gst_control_init (&argc, &argv);