octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MSCV patch: fix problem with "system" and the weird double quote handlin


From: Michael Goffioul
Subject: MSCV patch: fix problem with "system" and the weird double quote handling of Win32
Date: Sun, 4 Nov 2007 14:04:36 +0100

src/ChangeLog:

2007-11-04  Michael Goffioul <address@hidden>

    * toplev.cc: quote the complete command to execute in
    system function to work around weird double-quote handling
    of Win32 platform.


Index: src/toplev.cc
===================================================================
RCS file: /cvs/octave/src/toplev.cc,v
retrieving revision 1.206
diff -c -r1.206 toplev.cc
*** src/toplev.cc   12 Oct 2007 21:27:34 -0000  1.206
--- src/toplev.cc   4 Nov 2007 13:01:48 -0000
***************
*** 504,509 ****
--- 504,512 ----
        bool return_output = (nargout > 1 || nargin > 1);

        std::string cmd_str = args(0).string_value ();
+ #if defined (__WIN32__) && ! defined (__CYGWIN__)
+       cmd_str = "\"" + cmd_str + "\"";
+ #endif

        system_exec_type type = et_sync;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]