mozilla/rust — pull request #1863 by cpeterso (2012-02-17 07:24:58+00:00)
Title: std: Fix env() assert when an environment variable's value contains a '=' char

This patch fixes a rust build error from env() assertion failures.

MingW on Windows seems to set some funky environment variables like "=C:=C:\MinGW\msys\1.0\bin" and "!::=::\" that cause some assertion failures when trying to build rust. Some of the environment variables may contain '=' chars in their value *or even their name*!

This small patch avoids the assertion failure. I chose not to hide or sanitize these funky environment variables because they do exist in the system environment. I am also lazy.