#include <vlc/vlc.h>
#include <stdio.h> /* fprintf() */
#include <stdlib.h> /* putenv(), strtol(), */
+#include <locale.h>
/*****************************************************************************
{
int i_ret;
+ setlocale (LC_ALL, "");
+
#ifndef __APPLE__
/* This clutters OSX GUI error logs */
fprintf( stderr, "VLC media player %s\n", VLC_Version() );
}
else
{
- ppsz_argv[i] = "";
+ ppsz_argv[i] = strdup ("");
}
}
else
time_t abort_time = 0;
vlc_bool_t b_die = VLC_FALSE;
+#ifdef __APPLE__
+ /* We really prefer the "force quit" menu item to act immediately */
+ b_die = VLC_TRUE;
+#endif
+
for (;;)
{
int i_signal, state;