Apply fix to Textfile/Substfile suggested by Gary Oberbrunner
authorgregnoel <gregnoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 13 May 2009 20:12:13 +0000 (20:12 +0000)
committergregnoel <gregnoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 13 May 2009 20:12:13 +0000 (20:12 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4197 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Tool/textfile.py

index 976611ba67ed20ab492fa70aa673a4f0bb8e1b59..67b61f49306b1f3ce66cfbc92eb15cb13e504b30 100644 (file)
@@ -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