Subject: | Expensive no-op in File::Spec::OS2 canonpath |
I've been porting File::Spec to Perl 6, and I came across this line in the source for File::Spec::OS2:
$path =~ s/^([a-z]:)/\l$1/s;
That looks like we take the path, and if it starts with a lowercase drive letter, we convert it to lowercase? Huh?
Is converting it to uppercase the correct behavior here? Or is that unnecessary for canonpath? Either way, I'd like to know for my port, because I'm not a DOS/OS/2 user.
Thanks for all your hard work; it has been invaluable for my own project.