It appears that the gnuplot -V info does not go to stdout or stderr on Windows. See sample tclsh sessuion below:
tclsh
% exec gnuplot -V
However, if I pass a comman via the -e option, I get a response.
% exec gnuplot -e "show version"
G N U P L O T Version 5.2 patchlevel 0 last modified 2017-09-01 Copyright (C) 1986-1993, 1998, 2004, 2007-2017 Thomas Williams, Colin Kelley and many others gnuplot home: http://www.gnuplot.info faq, bugs, etc: type "help FAQ" immediate help: type "help" (plot window: hit 'h')
I am using gnuplot 5.2.0, TCL 8.6.4 & Windows 7.
This is an actual bug. It is a side effect of the introduction of Unicode capabilities in version 5.2.
The string is output using the Console API instead of C stdio. This should get fixed for 5.2.1.
We are currently in progress of converting the CVS repo to git. So an actual fix might take a bit.
Ethan, could you please move this to "Bugs"?
Ticket moved from /p/gnuplot/support-requests/228/
If you post a patch here I will include it in 5.2.1 regardless of the freeze on cvs/git commits. I plan to prepare the 5.2.1 tarball based on CVS snapshot + last minute bugfixes (2 so far, this would be the 3rd).
Diff:
Patch attached. I had this already because it also enables auto-rewrapping of lines when the size of the Windows 10 console changes: