This is the mail archive of the
mailing list for the Cygwin project.
Enviroment always uppercased; Help me, please
- From: "Markus K. E. Kommant" <Markus dot Kommant at de dot adp dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 27 Feb 2002 18:46:57 +0100
- Subject: Enviroment always uppercased; Help me, please
Seems to be a cygwin "feature" that the environment will be uppercased, when
called by a none cygwin program.
When puting a variable "gar=1" into the environment and call a program
compiled with gcc and cygwin, the result, when printing the environment,
ups, gar != GAR, especially in a POSIX environment!
When compiling the program with MS Developer Studio C++ the printed result
and that's okay.
Is there a trick to switch to a "POSIX" mode in cygwin and leave the case of
the environment unchanged?
int main ( int argc, char **argv, char **envp)
if (envp != NULL)
for (wp = envp; *wp != NULL; wp++)
printf("Parameters %d\n", argc);
printf("Parameter %d (len=%d) >>%s<<\n", i+1, strlen(argv[i]),
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html