Skip to content

Windows stdio handles can be null #11

Open
@ChrisDenton

Description

@ChrisDenton

See also: rust-lang/rust#88576

In short, Windows stdio functions can return null to mean that there are no handles. The code here assumes stdio handles are always valid File handles. While this is technically an incorrect assumption, it worked out ok until Rust's new "Safe I/O" code was implemented.

A workaround will be implemented upstream but I thought there should be an issue here too, since unfortunately it reached stable, causing env_logger to break.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions