_subproc(), so the underlying subprocess.Popen() call won't throw
an exception if the value is actually a Unicode string.
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3441
fdb21ef1-2011-0410-befe-
b5e4ea1792b1
is_String = SCons.Util.is_String
for key, value in ENV.items():
if is_String(value):
- new_env[key] = value
+ # Call str() even though it's a "string" because it might be
+ # a *Unicode* string, which makes subprocess.Popen() gag.
+ new_env[key] = str(value)
elif SCons.Util.is_List(value):
# If the value is a list, then we assume it is a
# path list, because that's a pretty common list-like