Changeset f7705ea7d627555a29e88a63a6a0d5c65e6836a0

Show
Ignore:
Timestamp:
03/06/07 21:08:31 (1 year ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1173211711 +0000
git-parent:

[0699b600bf3cfecc4ec7f09276f2bd86d66bf629]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1173211711 +0000
Message:

setlocale() (very) early, so we may have a chance to use nl_langinfo
before initializing LibVLC (refs #838)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/vlc.c

    r250e128 rf7705ea  
    3131#include <stdio.h>                                              /* fprintf() */ 
    3232#include <stdlib.h>                                  /* putenv(), strtol(),  */ 
     33#include <locale.h> 
    3334 
    3435 
     
    5758{ 
    5859    int i_ret; 
     60 
     61    setlocale (LC_ALL, ""); 
    5962 
    6063#ifndef __APPLE__ 
     
    146149                else 
    147150                { 
    148                     ppsz_argv[i] = ""
     151                    ppsz_argv[i] = strdup ("")
    149152                } 
    150153            }