From: gregnoel Date: Wed, 13 May 2009 20:12:13 +0000 (+0000) Subject: Apply fix to Textfile/Substfile suggested by Gary Oberbrunner X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ae8ed420ec6724929e4d0e3078a06bab4516a21c;p=scons.git Apply fix to Textfile/Substfile suggested by Gary Oberbrunner git-svn-id: http://scons.tigris.org/svn/scons/trunk@4197 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/Tool/textfile.py b/src/engine/SCons/Tool/textfile.py index 976611ba..67b61f49 100644 --- a/src/engine/SCons/Tool/textfile.py +++ b/src/engine/SCons/Tool/textfile.py @@ -106,7 +106,7 @@ def _action(target, source, env): # write the file try: - fd = open(target[0].get_path(), "w") + fd = open(target[0].get_path(), "wb") except (OSError,IOError), e: raise SCons.Errors.UserError("Can't write target file %s" % target[0]) # separate lines by 'linesep' only if linesep is not empty