Changeset 2b58a805b907efafbc5ef03347b6c086023806f0

Show
Ignore:
Timestamp:
05/21/08 20:41:52 (4 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1211395312 +0300
git-parent:

[b15107dacf8ad0e8e51bf4fa32dd7585a98e0d0e]

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

Always print numbers (floats) in American format in vlcrc

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/config/file.c

    r080a076 r2b58a80  
    3434#include <assert.h> 
    3535#include <limits.h> 
     36#include <locale.h> 
    3637 
    3738#include "configuration.h" 
     
    522523       "###\n### lines beginning with a '#' character are comments\n###\n\n" ); 
    523524 
     525    /* Ensure consistent number formatting... */ 
     526    locale_t loc = newlocale (LC_NUMERIC_MASK, "C", NULL); 
     527    locale_t baseloc = uselocale (loc); 
     528 
    524529    /* Look for the selected module, if NULL then save everything */ 
    525530    for( i_index = 0; i_index < p_list->i_count; i_index++ ) 
     
    628633 
    629634    vlc_list_release( p_list ); 
     635    if (loc != (locale_t)0) 
     636    { 
     637        uselocale (baseloc); 
     638        freelocale (loc); 
     639    } 
    630640 
    631641    /*