
aaron@...749... wrote:
Ted Gould wrote:
Sorry, I was unclear. No, just remove all the code in that if. Probably and easy way to do that is change it to "if (false &&" which will make it always fail, but not require many changes.
Ah, that makes much more sense. Removing the code makes it work. I sat down and tried STDERR redirection with "2>" in cmd.exe and found that it works fine. I wouldn't be surprised, however, if it was not available in earlier versions of windows. So what could the problem be? Perhaps the "awesome power" of the dos shell is not available to Inkscape. Is it possible for Inkscape to hook into both STDERR and STDOUT with out using a temporary file?
I assume you're talking about getting data from STDERR/STDOUT when running programs from within InkScape? On win32 you can connect STDERR to a pipe if you're using CreateProcess (which at least the code in src/extension/implementation/script.cpp currently does). The relevant member of the STARTUPINFO struct is hStdError, as far as I know it can be set to the same handle as hStdOut (which has the disadvantage of possibly making it harder to separate error messages from normal output) as well as a different handle (which would make getting results from the program harder).