This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: C / C# combination question
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 28 Dec 2009 11:47:55 +0100
- Subject: Re: C / C# combination question
- References: <0MhkDT-1NbSlY0u5z-00MvhY@mx.kundenserver.de>
- Reply-to: cygwin at cygwin dot com
On Dec 26 18:30, Jan Alphenaar wrote:
> Hi again,
>
> After some more extensive debugging I was able to find out what goes wrong
> with an environment variable if a Cygwin C program is called from a C#
> program.
>
> If an environment variable is in uppercase (like in my code) the getenv call
> in the C program will not be able to find it.
>
> On the other hand, if the environment variable is in lower case in both
> programs, the getenv call is able to find it. So, there must be some kind of
> upper to lowercase translation on the way.
There's no uppercase/lowercase conversion going on by default if you run
Cygwin 1.7. Under 1.5, when you started a Cygwin process from a
non-Cygwin process, the environment was completely uppercased. Under
1.7 this only occures for a handful of variables (like PATH or
HOMEDRIVE) and the rest of the environment is left alone. Unless you
have set CYGWIN=upcaseenv, see
http://cygwin.com/cygwin-ug-net/using-cygwinenv.html
There never was and still not is a conversion of the environment to
lowercase anywhere in Cygwin.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple