win32 stderr problem in kdecore/kcmdlineargs.cpp

David Faure faure at kde.org
Fri Aug 17 09:41:11 BST 2007


On Friday 17 August 2007, Ralf Habacker wrote:
> Hi,
> 
> in kdecore/kcmdlineargs.cpp fprintf(stderr,...) is often used to print 
> failures. Unfortunally on win32 with gui apps this output goes to 
> /dev/null.
> 
> Also using an hardcoded stderr makes it unable to change the output 
> using kdebugdialog.
> 
> Would it not better to use kFatal() for this cases ?

OK - unless this code runs too early for KConfig to work (assuming kDebug still uses KConfig).

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list