This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The GetCommandLine/WinMain "problem"


On Wed, Apr 05, 2006 at 12:18:29PM -0400, Pierre A. Humblet wrote:
>I have no problem with the GetCommandLine issue, but
>I am alarmed that you would touch GetEnvironmentVariable.
>The reason is that I am fixing dmalloc to work on the current Cygwin.
>It needs to read an environment variable when starting up (called
>early, from malloc_init). If it's starting from Windows, it needs to use
>GetEnvironmentVariable, or at least GetEnvironmentVariableA.

No, I have no problems with the patch.  I've been playing musical chairs
with those two lines.  I wouldn't mind putting them back in dll_crt0_0
either.  Then people who dynamically loaded the DLL would benefit.  My
previous reasons for moving those lines back to dll_crt0_1 aren't valid,
AFAIK.

However, you seem to be a little behind the times.  I am not talking
about doing anything new.  It's already happened.  People have already
reported problems with GetEnvironmentVariable due to the fact that
cygwin no longer fills out windows environment variables if it knows
that it is starting a cygwin program.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]