Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

| Index: src/debug.C
| ===================================================================
| RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/debug.C,v
| retrieving revision 1.39
| diff -u -p -r1.39 debug.C
| --- src/debug.C       6 Oct 2003 15:42:13 -0000       1.39
| +++ src/debug.C       30 Oct 2003 16:06:52 -0000
| @@ -123,4 +123,4 @@ void lyx_debug_trait::showTags(ostream &
|       os.flush();
|  }
|  
| -LyXErr lyxerr(std::cerr.rdbuf());
| +LyXErr lyxerr(0);

I think we should add a default constructor that does this, so that we
only use:

     LyXErr lyxerr;

| Index: src/main.C
| ===================================================================
| RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/main.C,v
| retrieving revision 1.27
| diff -u -p -r1.27 main.C
| --- src/main.C        14 Oct 2003 21:30:20 -0000      1.27
| +++ src/main.C        30 Oct 2003 16:06:52 -0000
| @@ -13,6 +13,7 @@
|  
|  #include "lyx_main.h"
|  #include "gettext.h"
| +#include "debug.h"
|  #include "support/os.h"
|  
|  #ifdef HAVE_IOS
| @@ -33,6 +34,9 @@ int main(int argc, char * argv[])
|  
|       // initialize for internationalized version *EK*
|       locale_init();
| +
| +     // Initialize lyxerr here to work around a problem with STLport.
| +     lyxerr.rdbuf(std::cerr.rdbuf());

This is ok.

Let's do this.

-- 
        Lgb

Reply via email to