homepage

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 myers_carpenter
Recipients
Date 2003年04月27日.17:44:53
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
In the resize method under win32 you have something
like this:
	/* Move to the desired EOF position */
 SetFilePointer (self->file_handle,
 new_size, NULL, FILE_BEGIN);
 /* Change the size of the file */
 SetEndOfFile (self->file_handle);
Which resizes the file
Under Unix you need to call 
 ftruncate(self->fileno, new_size)
before calling remap() to make it do the same thing.
History
Date User Action Args
2007年08月23日 14:12:53adminlinkissue728515 messages
2007年08月23日 14:12:53admincreate

AltStyle によって変換されたページ (->オリジナル) /