|
From: Ethan A M. <sf...@us...> - 2015-08-18 18:16:18
|
On Tuesday, 18 August, 2015 19:09:20 Tatsuro MATSUOKA wrote: > Hello > > This topic originally from the bug tracker. > https://sourceforge.net/p/gnuplot/bugs/1554/ > > > Two topic > 1) message related to qt terminal in gnuplot main program. > 2) message in gnuplot_qt I think you are correct. 1) The messages from qt_term.cpp can be written using fprintf(stderr, ...). This would be consistent with error messages throughout the main program. I will make this change. 2) Messages from the separate process gnuplot_qt should not try to write directly to stderr, since this may not go anywhere useful. qDebug() is supposed to handle this, but I can't help with how to configure on Windows. Ethan > > 1)********************************************* > For qt terminal, some messages are represented by qDebug() in qt libraries. > > However, using qDebug(), any message cannot be represented in wgnuplot. > In gnuplot main program for windows (gnuplot.exe, wgnuplot.exe and wgnuplot_pipes.exe), > fprintf is redefined and can be used to represent in stderr. > (Of course, printf ) > > In main program qt related routine is mainly described in qt_term.cpp. > In qt_term.cpp, qDebug() function is used in 7 times. > > fprintf(stderr,"") ... is also used in qt_term.cpp. > > For exapmle > > 973: fprintf(stderr, "Qt terminal communication error: select() error %i %s\n", errno, strerror(errno)); > > I cannot find the reason why both qDebug() and fprintf(stderr,"") are used. > > Can qDebug() replaced by fprintf(stderr,"") in qt_term.cpp? > > ****************************************************** end of 1) > > > 2) ********************************************************************* > BTW, for gnuplot_qt.exe situation is different. > qDebug seems not to represent anything on gnuplot.exe, wgnuplot.exe nor wgnuplot_pipes.exe. > > gnuplot_qt.exe works in another process so that it is difficult represent qDebug message to > wgnuplot command windows. > > Special treatment might be required to represent message from gnuplot_qt on windows. > > Does anyone have good idea? > ********************************************************** end of 2) > > Tatsuro > > ------------------------------------------------------------------------------ > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |