diff options
Diffstat (limited to 'src/engine/SCons')
| -rw-r--r-- | src/engine/SCons/Action.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/SCons/Action.py b/src/engine/SCons/Action.py index f1de15c..da02f12 100644 --- a/src/engine/SCons/Action.py +++ b/src/engine/SCons/Action.py @@ -518,7 +518,9 @@ def _subproc(env, cmd, error = 'ignore', **kw): 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 |
