[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49718] Octave crashes on print/saveas etc whe
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #49718] Octave crashes on print/saveas etc when installed on a directory with parenthesis |
Date: |
Sat, 13 Apr 2019 17:06:13 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0 |
Follow-up Comment #22, bug #49718 (project octave):
The ideas in the following post look interesting:
https://stackoverflow.com/questions/9964865/c-system-not-working-when-there-are-spaces-in-two-different-parameters
In short when cmd.exe (I assume this is what is behind pipes as for system
calls) finds parents or special characters, the first and last quotes are
removed. So we should surround the executable name and file names with quotes,
as we currently do, but also the whole command before passing it to a pipe.
If I understand correctly we should do system calls this way:
system ("\"\"PATH_WITH_PARENTS_AND_SPACES\prog.exe" nospaces \"text with
spaces\"\"");
This may solve the issue with both space and parents.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?49718>
_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #49718] Octave crashes on print/saveas etc when installed on a directory with parenthesis,
Pantxo Diribarne <=