|
From: Tatsuro M. <tma...@ya...> - 2015-08-18 10:09:30
|
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 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 |