Re: Cygwin app not receiving modified PATH env var

2008-06-18 Thread Mike Mueller
On Wed, Jun 18, 2008 at 12:30:22PM +0200, Corinna Vinschen wrote: > As I said, PATH is fetched with GetEnvironmentStrings from the env like > every other environment var, if the Cygwin app has been started by a > native parent. It's just massaged into a POSIX path afterwards. > There's no magic in

Re: Cygwin app not receiving modified PATH env var

2008-06-18 Thread Corinna Vinschen
On Jun 18 05:30, Mike Mueller wrote: > Obviously PATH is special to cygwin, because it has to transform the > Windows representation into a Unix-like representation. I agree with > you that it *should* be pulled in like any other variable, but I'm not > familiar with cygwin's under-the-hood workin

Re: Cygwin app not receiving modified PATH env var

2008-06-18 Thread Mike Mueller
Thanks for the replies, Corinna. > > A little further info. It looks like apr detects a unicode environment, > > so ultimately is calling CreateProcessW (not CreateProcessA). > > How do you pass your unicode env? Do you set the CREATE_UNICODE_ENVIRONMENT > flag? I get a snapshot of the current

Re: Cygwin app not receiving modified PATH env var

2008-06-18 Thread Corinna Vinschen
On Jun 18 04:00, Mike Mueller wrote: > A little further info. It looks like apr detects a unicode environment, > so ultimately is calling CreateProcessW (not CreateProcessA). How do you pass your unicode env? Do you set the CREATE_UNICODE_ENVIRONMENT flag? > Also, if I pass environment variable

Re: Cygwin app not receiving modified PATH env var

2008-06-18 Thread Corinna Vinschen
On Jun 17 21:05, Mike Mueller wrote: > On Mon, Jun 16, 2008 at 11:41:52PM -0400, Mike Mueller wrote: > > I have a program (native win32) that is capable of launching > > sub-processes, using apr (apache portable runtime), which is essentially > > a wrapper around CreateProcess in the Windows API.

Re: Cygwin app not receiving modified PATH env var

2008-06-18 Thread Mike Mueller
On Tue, Jun 17, 2008 at 09:05:36PM -0400, Mike Mueller wrote: > On Mon, Jun 16, 2008 at 11:41:52PM -0400, Mike Mueller wrote: > > I have a program (native win32) that is capable of launching > > sub-processes, using apr (apache portable runtime), which is essentially > > a wrapper around CreateProc

Re: Cygwin app not receiving modified PATH env var

2008-06-17 Thread Mike Mueller
On Mon, Jun 16, 2008 at 11:41:52PM -0400, Mike Mueller wrote: > I have a program (native win32) that is capable of launching > sub-processes, using apr (apache portable runtime), which is essentially > a wrapper around CreateProcess in the Windows API. My program creates a > modified environment (

Cygwin app not receiving modified PATH env var

2008-06-16 Thread Mike Mueller
Hey all, I have a program (native win32) that is capable of launching sub-processes, using apr (apache portable runtime), which is essentially a wrapper around CreateProcess in the Windows API. My program creates a modified environment (changes the PATH env var), and passes this new environment t