[PATCH/cygwin] reduce number of propagated environment variables

Corinna Vinschen vinschen at redhat.com
Sat Feb 20 19:55:47 EST 2010


On Feb 20 00:44, Roumen Petrov wrote:
> Corinna Vinschen wrote:
> >No, I didn't test with python.  Cygwin's python should work without
> >these variables.  You are not actually trying to tell me that python
> >really uses these environment variables to fetch information about the
> >CPU, right?  The variables are not available on other systems and the
> >user could set them to arbitrary values.  /proc/cpuinfo for instance,
> >which is available on Cygwin as well, is a much more reliable source of
> >information.
> 
> Yes but user may use cygwin sshd to access system and to run
> non-cygwin python.
> Value of PROCESSOR_ARCHITECTURE and PROCESSOR_IDENTIFIER are output from
>  platform.uname() if platform is identified as win32.

So, what is the output of platform.uname() on a native Win32 python if
these environment variables don't exist?


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat


More information about the openssh-unix-dev mailing list