www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10227] New: _fileno, _setmode, _O_BINARY undefined when building x64 on windows

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10227

           Summary: _fileno, _setmode, _O_BINARY undefined when building
                    x64 on windows
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: yarrluben+dbugs googlemail.com



03:57:24 PDT ---
_fileno, _setmode and _O_BINARY are missing when compiling a program for x64 on
windows with the microsoft linker.
Adding a few lines to src/phobos/std/stdio.d fixes the problem.
To reproduce the problem, use std.stdio.rawRead or std.stdio.rawWrite in any
program.

On further inspecting the source, it seems that rawRead and rawWrite use
different version statements for switching to binary; rawRead uses Win32 while
rawWrite uses Windows.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 01 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10227


Dylan <tcdknutson gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tcdknutson gmail.com



Proposed fix for this issue:
https://github.com/D-Programming-Language/phobos/pull/1538

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 03 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10227




Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/ce23685c0b4e66622230ab9031aba7500e162f83


Fix Issue 10227: Add missing file I/O functions for Win64 DMD and Windows LDC

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 24 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10227


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 24 2013