Menu

#1985 gnuplot -V info not going to stdout on Windows

None
closed-fixed
2017-11-17
2017-10-25
No

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.

1 Attachments

Discussion

  • Bastian Märkisch

    • labels: --> Windows, console
    • summary: gnuplot -V info not going to stdout on Windows? --> gnuplot -V info not going to stdout on Windows
    • status: open --> accepted
    • Group: -->
     
  • Bastian Märkisch

    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"?

     
  • Ethan Merritt

    Ethan Merritt - 2017-10-25

    Ticket moved from /p/gnuplot/support-requests/228/

     
  • Ethan Merritt

    Ethan Merritt - 2017-10-25
    • status: accepted --> open
    • assigned_to: Bastian Märkisch
    • Priority: 5 -->
     
  • Ethan Merritt

    Ethan Merritt - 2017-10-25

    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).

    Ethan
    
     
  • Bastian Märkisch

    • Attachments has changed:

    Diff:

    --- old
    +++ new
    @@ -0,0 +1 @@
    +console-io.patch (1.5 kB; application/octet-stream)
    
     
  • Bastian Märkisch

    Patch attached. I had this already because it also enables auto-rewrapping of lines when the size of the Windows 10 console changes:

        * src\win\winmain.c (ConsolePutS, ConsolePutCh):  Use standard file IO
        instead of Console API to enable word-wrapping on Windows 10 and to
        allow for redirection of stdout/stderr.
        Bug #1985
    
     
  • Bastian Märkisch

    • status: open --> pending-fixed
     
  • Ethan Merritt

    Ethan Merritt - 2017-11-17
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.