Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: From: "Markus K. E. Kommant" To: cygwin AT cygwin DOT com Subject: Enviroment always uppercased; Help me, please Date: Wed, 27 Feb 2002 18:46:57 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" 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, will be GAR=1 ups, gar != GAR, especially in a POSIX environment! When compiling the program with MS Developer Studio C++ the printed result will be gar=1 and that's okay. Is there a trick to switch to a "POSIX" mode in cygwin and leave the case of the environment unchanged? parameter.c: #include #include int main ( int argc, char **argv, char **envp) { int i; char **wp; printf("Environment:\n"); if (envp != NULL) for (wp = envp; *wp != NULL; wp++) printf("%s\n", *wp); printf("Parameters %d\n", argc); for (i=0;i>%s<<\n", i+1, strlen(argv[i]), argv[i]); } return argc; } -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/