[ python-Bugs-1467309 ] open should default to binary mode on windows
SourceForge.net
noreply at sourceforge.net
Sun Apr 9 20:42:02 CEST 2006
Bugs item #1467309, was opened at 2006-04-09 13:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1467309&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Adam Hupp (hupp)
Assigned to: Nobody/Anonymous (nobody)
Summary: open should default to binary mode on windows
Initial Comment:
On windows the open() function defaults to reading
files in text mode. To get a binary mode file I need
to append a "b" to the mode string. I think this is an
unnessary platform inconsistency. Twice now I've had
hard to track down bugs because I was reading a file in
text mode and should have been using binary. This is a
wart, IMO.
I'd like to suggest that the default open mode on
windows be made binary, with an option to change it to
text if desired.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1467309&group_id=5470
More information about the Python-bugs-list
mailing list