# HG changeset patch # User thananck@yahoo.com # Date 1120508541 28800 # Node ID ad2999fad721882dde65adbb95d2a887f9119ed1 # Parent 6bff574d639f9df1cd19b731d6b192256f3ec73c Output file of 'export' is opened as binary (other OS) # HG changeset patch # User thananck@yahoo.com # Node ID 7a240687674e6cf5a8dfd45973d7e3978b89af79 # Parent d2994b5298fb20f87dc1d4747635b280db3c0526 Output file of 'export' is opened as binary (other OS) diff -r 6bff574d639f -r ad2999fad721 mercurial/commands.py --- a/mercurial/commands.py Mon Jul 04 12:18:58 2005 -0800 +++ b/mercurial/commands.py Mon Jul 04 12:22:21 2005 -0800 @@ -505,7 +505,7 @@ if opts['output'] and opts['output'] != '-': try: - fp = open(expand(opts['output']), 'w') + fp = open(expand(opts['output']), 'wb') except KeyError, inst: ui.warn("error: invalid format spec '%%%s' in output file name\n" % inst.args[0])