X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fvlc.c;h=7fe7bf7d268985b4bc174f54628bfe2e395fcccc;hb=0e081263f3e8978f70f638925caf0f3d3498b124;hp=4d61b1ca03ca19c1d38551d137a6538d9bb3545c;hpb=7d6ea0b199861ba8f0a6d915ad63272ed984672c;p=vlc diff --git a/src/vlc.c b/src/vlc.c index 4d61b1ca03..7fe7bf7d26 100644 --- a/src/vlc.c +++ b/src/vlc.c @@ -30,6 +30,7 @@ #include #include /* fprintf() */ #include /* putenv(), strtol(), */ +#include /***************************************************************************** @@ -57,6 +58,8 @@ int main( int i_argc, char *ppsz_argv[] ) { int i_ret; + setlocale (LC_ALL, ""); + #ifndef __APPLE__ /* This clutters OSX GUI error logs */ fprintf( stderr, "VLC media player %s\n", VLC_Version() ); @@ -145,7 +148,7 @@ int main( int i_argc, char *ppsz_argv[] ) } else { - ppsz_argv[i] = ""; + ppsz_argv[i] = strdup (""); } } else @@ -202,6 +205,11 @@ static void *SigHandler (void *data) 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;