Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for Windows build #45168

Closed
theller opened this issue Jul 11, 2007 · 3 comments
Closed

Patch for Windows build #45168

theller opened this issue Jul 11, 2007 · 3 comments
Labels
build The build process and cross-build

Comments

@theller
Copy link

theller commented Jul 11, 2007

BPO 1751801
Nosy @gvanrossum, @theller
Files
  • windows.diff: Patches for windows
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2008-01-06.22:29:45.934>
    created_at = <Date 2007-07-11.10:51:03.000>
    labels = ['build']
    title = 'Patch for Windows build'
    updated_at = <Date 2008-01-06.22:29:45.934>
    user = 'https://github.com/theller'

    bugs.python.org fields:

    activity = <Date 2008-01-06.22:29:45.934>
    actor = 'admin'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Build']
    creation = <Date 2007-07-11.10:51:03.000>
    creator = 'theller'
    dependencies = []
    files = ['8080']
    hgrepos = []
    issue_num = 1751801
    keywords = ['patch']
    message_count = 3.0
    messages = ['52830', '52831', '52832']
    nosy_count = 2.0
    nosy_names = ['gvanrossum', 'theller']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1751801'
    versions = ['Python 3.0']

    @theller
    Copy link
    Author

    theller commented Jul 11, 2007

    In Modules/_fileio.c, HAVE_FTRUNCATE is undefined for Windows.

    @theller theller closed this as completed Jul 11, 2007
    @theller theller added the build The build process and cross-build label Jul 11, 2007
    @theller theller closed this as completed Jul 11, 2007
    @theller theller added the build The build process and cross-build label Jul 11, 2007
    @gvanrossum
    Copy link
    Member

    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?)

    @theller
    Copy link
    Author

    theller commented Jul 11, 2007

    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.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    build The build process and cross-build
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants