www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8733] New: Normalize -of path on Windows

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

           Summary: Normalize -of path on Windows
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com



18:33:03 PDT ---
Make a .d file in a foo directory, then run:

$ dmd foo/test.d
ok

$ dmd foo/test.d -offoo/main.exe
OPTLINK (R) for Win32  Release 8.00.12
Copyright (C) Digital Mars 1989-2010  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
OPTLINK : Warning 9: Unknown Option : MAIN
OPTLINK : Warning 9: Unknown Option : MAIN.EXE
user32.def(0) : Error 2: File Not Found user32.def
--- errorlevel 1

DMD should try to normalize the -of path by changing forward slashes to
backslashes since Optlink reserves forward slashes for flags.

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code klickverbot.at



16:58:38 PDT ---
*** Issue 8736 has been marked as a duplicate of this issue. ***

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




20:33:23 PDT ---

 *** Issue 8736 has been marked as a duplicate of this issue. ***
Guys is this safe to implement this way?: mars.c: void toWinPath(char* src) { if (src != NULL) { while (*src != '\0') { if (*src == '/') *src = '\\'; src++; } } } case 'f': if (!p[3]) goto Lnoarg; #if TARGET_WINDOS toWinPath(p + 3); #endif It works in simple cases but I'm worried about any Unicode issues and of course UNC paths and whatnot. Is there any standard WinAPI/DMC API function that normalizes the path (converts '/' to '\')? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 03 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8733


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull



15:42:59 PST ---
Forgot to mention it's a pull:

https://github.com/D-Programming-Language/dmd/pull/1208

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




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5680ab0255f2a2e51674a3dabed8b95ec938280a
Fixes Issue 8733 - Turn forward slashes into backslashes on Windows.

https://github.com/D-Programming-Language/dmd/commit/cf03d8e3c4433a66269f37b7ea1df7e963be4f1a


Issue 8733 - Normalize -of and -od path on Windows

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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