Project

General

Profile

Actions

Bug #13920

closed

prepping io for stdin returns "access denied" on windows

Added by rocifier (Ryan O'Connor) about 7 years ago. Updated about 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:82874]

Description

https://github.com/ruby/ruby/blob/c08f7b80889b531865e74bc5f573df8fa27f2088/io.c#L12730

rb_stdin = prep_stdio(stdin, FMODE_READABLE, rb_cIO, "<STDIN>");

When this line (io.c) is called upon initialising ruby with ruby_init() or ruby_setup() and the library is built with VS2015 x86 Native Tools Command Prompt, fileno(stdin) returns -2 and errno is set to 13. This raises a ruby exception and fails setup. The library has been tested with /MD and /MDd and with 2.4.2 and 2.5.0

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0