PR# 19790 {PLAIN_TEXT_FILE}.`make_open_temporary' not working with MSC compiler

Problem Report Summary
Submitter: tilouis
Category: EiffelBase
Priority: Low
Date: 2021/08/03
Class: Bug
Severity: Non-critical
Number: 19790
Release: 20.05
Confidential: No
Status: Analyzed
Responsible:
Environment: Windows with Microsoft Visual Studio 2013
Synopsis: {PLAIN_TEXT_FILE}.`make_open_temporary' not working with MSC compiler

Description
When I call {PLAIN_TEXT_FILE}.`make_open_temporary'  on Windows, using the Microsoft Visual Studio 2013 compiler, It raised an "Invalid argument: OPERATING_SYSTEM_FAILURE" error.

To Reproduce
Minimalist example:

class
	APPLICATION

create
	make

feature {NONE} -- Initialization

	make
			-- Run application.
		local
			l_file:PLAIN_TEXT_FILE
		do
			create l_file.make_open_temporary
		end

end
Problem Report Interactions
From:jfiat_es    Date:2021/12/23    Status: Analyzed    Download   
On Windows, the runtime is using the function _wsopen (see https://github.com/EiffelSoftware/EiffelStudio/blob/main/Src/C/run-time/file.c#L2289 )
Do you have a strong requirement to use VS 2013, or you can use more recent version of MS C compiler?