This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cgohlke
Recipients cgohlke
Date 2011-02-19.23:57:23
SpamBayes Score 0.025171006
Marked as misclassified No
Message-id <1298159845.78.0.925914963765.issue11250@psf.upfronthosting.co.za>
In-reply-to
Content
Running Tools/Scripts/2to3.py on Python 3.2rc3 or 2.7.1 for Windows on a file that contains a formfeed character (0x0C, <FF>) results in a truncated file. 

E.g. a file (attached) with the content

print 1
<FF>
print 2

is incorrectly refactored:

@@ -1,4 +1,1 @@
-print 1
-
-
-print 2
+print(1)


Python 2.6.6 and 3.1.3 correctly refactor the file:

-print 1
+print(1)
 <FF>
-print 2
+print(2)
History
Date User Action Args
2011-02-19 23:57:25cgohlkesetrecipients: + cgohlke
2011-02-19 23:57:25cgohlkesetmessageid: <1298159845.78.0.925914963765.issue11250@psf.upfronthosting.co.za>
2011-02-19 23:57:24cgohlkelinkissue11250 messages
2011-02-19 23:57:23cgohlkecreate