Commit f3513ebe authored by Saul Ibarra's avatar Saul Ibarra

Always open file for incoming transfer in binary mode


It's the default on Unix systems, but the guys over at Redmond, WA
seem to think different.
parent b6e6169b
......@@ -3266,7 +3266,7 @@ class FileTransfer(object):
if not os.path.exists(name) and not os.path.exists(name + self.tmp_file_suffix):
self.filename = name
break
self._file_selector.fd = open(self.filename+self.tmp_file_suffix, 'w+')
self._file_selector.fd = open(self.filename+self.tmp_file_suffix, 'wb+')
self.state = 'connecting'
notification_center = NotificationCenter()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment