From 13916dae8f31a8b91e07366f8cc8788ae43a380c Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 19 Aug 2003 08:11:58 +0000 Subject: [PATCH] further i18n: call setlocale() Original commit message from CVS: further i18n: call setlocale() --- tools/gst-complete.c | 3 +++ tools/gst-compprep.c | 4 ++++ tools/gst-launch.c | 4 ++++ tools/gst-md5sum.c | 3 +++ tools/gst-register.c | 3 +++ tools/gst-typefind.c | 3 +++ tools/gst-xmlinspect.c | 3 +++ 7 files changed, 23 insertions(+) diff --git a/tools/gst-complete.c b/tools/gst-complete.c index 8e25255cb9..092c60fb99 100644 --- a/tools/gst-complete.c +++ b/tools/gst-complete.c @@ -1,6 +1,7 @@ #include #include #include +#include #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 f277b528aa..345b110601 100644 --- a/tools/gst-compprep.c +++ b/tools/gst-compprep.c @@ -2,6 +2,8 @@ # include "config.h" #endif +#include + #include 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 104199bfdc..5eb22d8b19 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -7,6 +7,8 @@ #include #include #include +#include + #include /* 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 12e45ed30f..0d28c81ebc 100644 --- a/tools/gst-md5sum.c +++ b/tools/gst-md5sum.c @@ -5,6 +5,7 @@ #include #include #include +#include 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 135995553d..534badf83c 100644 --- a/tools/gst-register.c +++ b/tools/gst-register.c @@ -33,6 +33,7 @@ #include #include #include +#include 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 75ad0a5289..9f34c28405 100644 --- a/tools/gst-typefind.c +++ b/tools/gst-typefind.c @@ -4,6 +4,7 @@ #include #include +#include #include /* @@ -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 ed35ab1c16..f6620e8ae5 100644 --- a/tools/gst-xmlinspect.c +++ b/tools/gst-xmlinspect.c @@ -5,6 +5,7 @@ #include #include #include +#include #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);