New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't handle a directory that has <0x5c> (backslash) at the end on the Windows system. #7589
Comments
From ran@timedia.co.jpIf a directory include <0x5c> as a last byte of a directory name, ActivePerl can't judge whether this directory exists or not in a system by using "-d" (like a following sample code "test.pl"). #!perl
if (-d $ARGV[0]) {
print "$ARGV[0] is directory.\n";
} else {
print "$ARGV[0] is not directory.\n";
} For example, when there is a directory consists of multi-byte
In Japanese Windows environments, these two bytes (<0x94> and <0x5c>) When I ran a sample code "test.pl"(see above):
it returns "is not directory" even if C:<0x94><0x5c> directory exists in a system. However, when I added a backslash or backslashes as follows:
a sample program can find C:<0x94><0x5c> directory and returns "is directory". It seemed that one or more <0x5c> is trancated and it causes a fatal Once I submitted this problem in a bugtraq in ActiveState and received a following comment: Comments from Jan Dubois 2004-05-18 07:27
Comments from Jan Dubois 2004-05-18 07:39
It seemed a reason why "an additional backslash" is needed that a I guess "dir\subdir" should be remained as "dir\subdir" instead of Perl Info
|
From @jkeenanCan anyone running ActivePerl, Strawberry Perl, etc., confirm that this is still a problem? Would it be a problem on non-Windows Perls? Thank you very much. -- |
The RT System itself - Status changed from 'new' to 'open' |
From zefram@fysh.orgJames E Keenan via RT wrote:
It can't happen anywhere that the directory separator manifests as a -zefram |
Migrated from rt.perl.org#32394 (status was 'open')
Searchable as RT32394$
The text was updated successfully, but these errors were encountered: