[Issue 8733] Normalize -of path on Windows
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 3 20:39:15 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8733
--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-10-03 20:33:23 PDT ---
(In reply to comment #1)
> *** 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: -------
More information about the Digitalmars-d-bugs
mailing list