Possible bug in std.path?

Hugo via Digitalmars-d digitalmars-d at puremagic.com
Sat May 21 10:40:11 PDT 2016


On Friday, 20 May 2016 at 17:41:22 UTC, Adam D. Ruppe wrote:
> On Friday, 20 May 2016 at 15:18:39 UTC, Hugo wrote:
>> On the other hand, regular console commands and many console 
>> applications for Windows work as expected, so there must be a 
>> way to deal with this properly
>
> It is pretty easy to handle, but must happen at a higher level 
> than buildNormalizedPath.
>
> Use GetCommandLine to fetch the original thing the user typed, 
> then process it yourself.
>
> https://msdn.microsoft.com/en-us/library/windows/desktop/ms683156%28v=vs.85%29.aspx
>
> But buildNormalizedPath cannot do this itself because its 
> argument doesn't necessarily come from the command line.
>
> Your main() function could use it to get the string you pass to 
> the other functions though. That's probably what most the 
> Windows built in things do when they need to.

Thank you all.


More information about the Digitalmars-d mailing list