mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
further i18n: call setlocale()
Original commit message from CVS: further i18n: call setlocale()
This commit is contained in:
parent
83bdee27e5
commit
13916dae8f
7 changed files with 23 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue