From: David S. <dsc...@us...> - 2003-08-19 08:12:12
|
CVS Root: /cvsroot/gstreamer Module: gstreamer Changes by: dschleef Date: Tue Aug 19 2003 01:12:11 PDT Log message: further i18n: call setlocale() Modified files: tools : gst-complete.c gst-compprep.c gst-launch.c gst-md5sum.c gst-register.c gst-typefind.c gst-xmlinspect.c Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/tools/gst-complete.c.diff?r1=1.5&r2=1.6 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/tools/gst-compprep.c.diff?r1=1.14&r2=1.15 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/tools/gst-launch.c.diff?r1=1.49&r2=1.50 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/tools/gst-md5sum.c.diff?r1=1.3&r2=1.4 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/tools/gst-register.c.diff?r1=1.13&r2=1.14 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/tools/gst-typefind.c.diff?r1=1.2&r2=1.3 http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/tools/gst-xmlinspect.c.diff?r1=1.6&r2=1.7 ====Begin Diffs==== Index: gst-complete.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/tools/gst-complete.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- gst-complete.c 29 Jun 2003 14:05:49 -0000 1.5 +++ gst-complete.c 19 Aug 2003 08:11:58 -0000 1.6 @@ -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 @@ struct stat stat_buf; + setlocale (LC_ALL, ""); + if(argc<4){ fprintf(stderr,"gst-complete called with invalid arguments\n"); exit(1); Index: gst-compprep.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/tools/gst-compprep.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- gst-compprep.c 29 Jun 2003 14:05:49 -0000 1.14 +++ gst-compprep.c 19 Aug 2003 08:11:58 -0000 1.15 @@ -2,6 +2,8 @@ # include "config.h" #endif +#include <locale.h> + #include <gst/gst.h> GST_DEBUG_CATEGORY_STATIC(debug_compprep); @@ -17,6 +19,8 @@ GstPadTemplate *padtemplate; 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"); Index: gst-launch.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/tools/gst-launch.c,v retrieving revision 1.49 retrieving revision 1.50 diff -u -d -r1.49 -r1.50 --- gst-launch.c 19 Aug 2003 05:43:55 -0000 1.49 +++ gst-launch.c 19 Aug 2003 08:11:58 -0000 1.50 @@ -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 @@ -311,6 +313,8 @@ gint res = 0; free (malloc (8)); /* -lefence */ + + setlocale(LC_ALL, ""); gst_alloc_trace_set_flags_all (GST_ALLOC_TRACE_LIVE); Index: gst-md5sum.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/tools/gst-md5sum.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- gst-md5sum.c 29 Jun 2003 14:05:49 -0000 1.3 +++ gst-md5sum.c 19 Aug 2003 08:11:58 -0000 1.4 @@ -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; @@ -65,6 +66,8 @@ gchar *md5string = g_malloc0 (33); free (malloc (8)); /* -lefence */ + + setlocale (LC_ALL, ""); gst_init_with_popt_table (&argc, &argv, options); Index: gst-register.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/tools/gst-register.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- gst-register.c 19 Aug 2003 07:58:53 -0000 1.13 +++ gst-register.c 19 Aug 2003 08:11:58 -0000 1.14 @@ -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; @@ -73,6 +74,8 @@ { GList *registries; GList *path_spill = NULL; /* used for path spill from failing registries */ + + setlocale(LC_ALL, ""); /* Init gst */ _gst_registry_auto_load = FALSE; Index: gst-typefind.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/tools/gst-typefind.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- gst-typefind.c 29 Jun 2003 14:05:49 -0000 1.2 +++ gst-typefind.c 19 Aug 2003 08:11:58 -0000 1.3 @@ -4,6 +4,7 @@ #include <string.h> #include <stdlib.h> +#include <locale.h> #include <gst/gst.h> /* @@ -37,6 +38,8 @@ { GstElement *pipeline; GstElement *source, *typefind; + + setlocale (LC_ALL, ""); gst_init (&argc, &argv); Index: gst-xmlinspect.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/tools/gst-xmlinspect.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- gst-xmlinspect.c 29 Jun 2003 14:05:49 -0000 1.6 +++ gst-xmlinspect.c 19 Aug 2003 08:11:58 -0000 1.7 @@ -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{ \ @@ -1001,6 +1002,8 @@ "Show scheduler details", NULL}, POPT_TABLEEND }; + + setlocale (LC_ALL, ""); gst_init_with_popt_table (&argc, &argv, options); gst_control_init (&argc, &argv); |