On 17 October 2003, Frank wrote:
[...]
program Bar;
uses GPC, Pipe;
var Arguments: array [0 .. 2] of CString = ('foo', 'bar', '"bar"'); Status: Integer = 0; ErrMsg: TString = '';
begin PWait (PExecute ('foo', PCStrings (@Arguments), ErrMsg, PExecute_One), Status, 0); WriteLn (Status, ' ', ErrMsg) end.
The output should be:
bar "bar" 0
I have just discovered that there is a problem under Mingw as well. I compiled and ran the programs under Mingw, and the output was this:
bar "bar 0
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.bigfoot.com/~african_chief/
Prof. A Olowofoyeku (The African Chief) wrote:
On 17 October 2003, Frank wrote:
[...]
program Bar;
uses GPC, Pipe;
var Arguments: array [0 .. 2] of CString = ('foo', 'bar', '"bar"'); Status: Integer = 0; ErrMsg: TString = '';
begin PWait (PExecute ('foo', PCStrings (@Arguments), ErrMsg, PExecute_One), Status, 0); WriteLn (Status, ' ', ErrMsg) end.
The output should be:
bar "bar" 0
I have just discovered that there is a problem under Mingw as well. I compiled and ran the programs under Mingw, and the output was this:
bar "bar 0
What do you get when you change the conditional?
Frank
On 20 Oct 2003 at 22:05, Frank Heckenbach wrote: [...]
I have just discovered that there is a problem under Mingw as well. I compiled and ran the programs under Mingw, and the output was this:
bar "bar 0
What do you get when you change the conditional?
bar bar 0
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.bigfoot.com/~african_chief/
Prof. A Olowofoyeku (The African Chief) wrote:
On 20 Oct 2003 at 22:05, Frank Heckenbach wrote: [...]
I have just discovered that there is a problem under Mingw as well. I compiled and ran the programs under Mingw, and the output was this:
bar "bar 0
What do you get when you change the conditional?
bar bar 0
Oh yeah, I think there's a bug in the conversion. Try the attached patch. Also, perhaps a little bug in the test (which may not be relevant, though). Change
Arguments: array [0 .. 2] of CString = ('foo', 'bar', '"bar"');
to
Arguments: array [0 .. 3] of CString = ('foo', 'bar', '"bar"', nil);
Frank
On 22 Oct 2003 at 14:19, Frank Heckenbach wrote:
[...]
What do you get when you change the conditional?
bar bar 0
Oh yeah, I think there's a bug in the conversion. Try the attached patch. Also, perhaps a little bug in the test (which may not be relevant, though).
With the patch applied, it gives the correct result now (without any change to the test).
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/