]> git.sesse.net Git - vlc/commitdiff
* The configuration file and the log file are opened in text mode. This mode
authorGildas Bazin <gbazin@videolan.org>
Wed, 1 May 2002 21:31:53 +0000 (21:31 +0000)
committerGildas Bazin <gbazin@videolan.org>
Wed, 1 May 2002 21:31:53 +0000 (21:31 +0000)
should only have a meaning on Win32 and isn't supposed to break any other
platform. If does give you any trouble then shout.

plugins/text/logger.c
src/misc/configuration.c

index 301c8b60f56bde61d0b294ac8dab2da28bbe3dea..1dc9a5174471ade99a861b095e17c9259103c917 100644 (file)
@@ -2,7 +2,7 @@
  * logger.c : file logging plugin for vlc
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: logger.c,v 1.7 2002/04/21 11:23:03 gbazin Exp $
+ * $Id: logger.c,v 1.8 2002/05/01 21:31:53 gbazin Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -127,7 +127,7 @@ static int intf_Open( intf_thread_t *p_intf )
 
     /* Open the log file and remove any buffering for the stream */
     intf_WarnMsg( 1, "intf: opening logfile `%s'", psz_filename );
-    p_intf->p_sys->p_file = fopen( psz_filename, "w" );
+    p_intf->p_sys->p_file = fopen( psz_filename, "wt" );
     setvbuf( p_intf->p_sys->p_file, NULL, _IONBF, 0 );
 
     p_intf->p_sys->p_sub = intf_MsgSub();
index ddb9ece64dfbd9d2531e09b2443ace7b3705327b..b9f1d6cc37b5e6108c2c5a24141f85b4d847b6b2 100644 (file)
@@ -2,7 +2,7 @@
  * configuration.c management of the modules configuration
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: configuration.c,v 1.20 2002/04/24 23:08:08 gbazin Exp $
+ * $Id: configuration.c,v 1.21 2002/05/01 21:31:53 gbazin Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *
@@ -363,7 +363,7 @@ int config_LoadConfigFile( const char *psz_module_name )
 
     intf_WarnMsg( 5, "config: opening config file %s", psz_filename );
 
-    file = fopen( psz_filename, "r" );
+    file = fopen( psz_filename, "rt" );
     if( !file )
     {
         intf_WarnMsg( 1, "config: couldn't open config file %s for reading (%s)",
@@ -551,7 +551,7 @@ int config_SaveConfigFile( const char *psz_module_name )
 
     intf_WarnMsg( 5, "config: opening config file %s", psz_filename );
 
-    file = fopen( psz_filename, "r" );
+    file = fopen( psz_filename, "rt" );
     if( !file )
     {
         intf_WarnMsg( 1, "config: couldn't open config file %s for reading (%s)",
@@ -631,7 +631,7 @@ int config_SaveConfigFile( const char *psz_module_name )
      * Save module config in file
      */
 
-    file = fopen( psz_filename, "w" );
+    file = fopen( psz_filename, "wt" );
     if( !file )
     {
         intf_WarnMsg( 1, "config: couldn't open config file %s for writing",