Possible bug in std.path?

Hugo via Digitalmars-d digitalmars-d at puremagic.com
Fri May 20 08:18:39 PDT 2016


On Friday, 20 May 2016 at 03:40:23 UTC, Walter Bright wrote:
> On 5/19/2016 6:35 PM, Hugo wrote:
>> I assumed the
>> function would deal with the trailing backslash.
>
> And it can. It just never received a trailing backslash because 
> that was removed by the Windows argument processing.

Yes, I can see the problem.

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, and IMHO this would be usefull in 
buildNormalizedPath, instead of leaving the programmer the task 
to find a (perhaps sub-optimal) woraround.



More information about the Digitalmars-d mailing list