# New Ticket Created by  Ron Blaschke 
# Please include the string:  [perl #35043]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=35043 >


C<capture_output> only handles stdout, but at least on Windows the
versions of Python and ANTLR are reported on stderr, yielding the
following result.

Determining whether python is installed.......................no.
Determining whether antlr is installed........................no.

Attached patch changes C<capture_output> to return the 3-tuple
(stdout, stderr, exit code), and stdout and stderr are joined, which
should result in a string containing the version, no matter where it
is print.

Determining whether python is installed...............yes, 2.4.1.
Determining whether antlr is installed..........yes, with python.

Also, C<capture_output> is changed to write into the file F<test.err>
instead of F<test.out>, and F<test.err> is deleted at the end of
C<capture_output>.

Ron


Reply via email to