From ae8ed420ec6724929e4d0e3078a06bab4516a21c Mon Sep 17 00:00:00 2001 From: gregnoel Date: Wed, 13 May 2009 20:12:13 +0000 Subject: [PATCH] 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 --- src/engine/SCons/Tool/textfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2