* 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>
*
/* 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();
* 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>
*
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)",
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)",
* 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",