Bugs item #1595822, was opened at 2006-11-13 11:17 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1595822&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: Python 2.5 >Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: reson5 (reson5) Assigned to: Nobody/Anonymous (nobody) Summary: read() in windows stops on chr(26) Initial Comment: >From standard distribution (installation through .exe file): open() function in Windows (I have win2k and xp) opens files in text mode and stops on chr(26). I cannot parse a binary file (!). On Linux all works fine. Regards, Reson5 ---------------------------------------------------------------------- >Comment By: SourceForge Robot (sf-robot) Date: 2006-11-27 19:20 Message: Logged In: YES user_id=1312539 Originator: NO This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: Georg Brandl (gbrandl) Date: 2006-11-13 11:29 Message: Logged In: YES user_id=849994 chr(26) or Ctrl+Z is the end-of-file character in Windows, for text-mode files. If you open the file in binary mode, e.g. with open("filename", "rb"), there should be no problems with reading the chr(26). ---------------------------------------------------------------------- Comment By: reson5 (reson5) Date: 2006-11-13 11:20 Message: Logged In: YES user_id=1355850 To clarify, The behavior is not uniform on Linux it opens in binary and on windows in text (!) Regards, Reson5 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1595822&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com