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.

classification
Title: Patch for Windows build
Type: Stage:
Components: Build Versions: Python 3.0
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: gvanrossum, theller
Priority: normal Keywords: patch

Created on 2007-07-11 10:51 by theller, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
windows.diff theller, 2007-07-11 10:51 Patches for windows
Messages (3)
msg52830 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2007-07-11 10:51
In Modules/_fileio.c, HAVE_FTRUNCATE is undefined for Windows.
msg52831 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2007-07-11 12:33
Looks fine. Can you check this in yourself?

Nit: I note that the line added for _fileio to PC/config.c is improperly indented (space/tab issue?).

Note that this will make various tests using f.truncate() fail.  At some point we need to implement it using the same APIs as were used in the old file object.

Also, my hope is that eventually we'll have a Windows specific version of _fileio.c instead of this code, using all-native Windows API calls.  (Any volunteers?)
msg52832 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2007-07-11 12:47
Committed as SVN rev. 56264, after fixing the indentation of the added lines in config.c.
Note that config.c is indented partly with tabs, partly with spaces anyway.
History
Date User Action Args
2022-04-11 14:56:25adminsetgithub: 45168
2008-01-06 22:29:45adminsetkeywords: - py3k
versions: + Python 3.0
2007-07-11 10:51:03thellercreate