On Thu, 27 Dec 2007 21:11:17 +0200
ik <[EMAIL PROTECTED]> wrote:

>[...]
> > You are right.
> > It seems under windows TProcess does not handle " and ', but simply
> > passes the entire commandline to CreateProcess, so it is up to
> > program to handle " and ' correct. According to msdn this is normal
> > under windows.
> 
> The problem of Windows API is that for path you must use ", otherwise
> it will search in wrong manner. 

The problem is that " is ignored by the RTL/FCL under windows.

TProcess uses under windows CreateProcess which passes the command line
to the program. This step does not interpret the " and ' characters,
but simply splits at spaces.
Under unix TProcess splits the parameters using spaces, ", ' and uses
execve.

TCustomApplication does not interpret " and '.

I wonder where under windows the ",' must be parsed. Change TProcess to
use another function or change RTL?
I have no windows to test, so I will leave this to windows devels.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to