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
rmtree can not be called from a directory with a SJIS character with trailing 0x5c in path. #9099
Comments
From Gadi.Reinhorn@mathworks.comThis is a bug report for perl from greinhorn@mathworks.com, I am calling rmtree on a path that contains with a SJIS character with trailing 0x5c. I've debugged the issue and I believe the root cause is the call to The way to reproduce this issue is: mkdir �}*\END 4) Run the batch file. You should get a message like the following: C:\temp\gadi\�}*\END\*\Ž|M>S:\Akernel\matlab\sys\perl\win32\bin\perl.exe S:\Work Note the difference between: I think this proves that the issue is with the call to getcwd.--- This perlbug was built using Perl v5.8.8 - Tue Jan 23 15:57:26 2007 Site configuration information for perl v5.8.8: Configured by batserve at Thu Jun 7 18:52:55 2007. Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Locally applied patches: @INC for perl v5.8.8: Environment for perl v5.8.8: |
1 similar comment
From Gadi.Reinhorn@mathworks.comThis is a bug report for perl from greinhorn@mathworks.com, I am calling rmtree on a path that contains with a SJIS character with trailing 0x5c. I've debugged the issue and I believe the root cause is the call to The way to reproduce this issue is: mkdir �}*\END 4) Run the batch file. You should get a message like the following: C:\temp\gadi\�}*\END\*\Ž|M>S:\Akernel\matlab\sys\perl\win32\bin\perl.exe S:\Work Note the difference between: I think this proves that the issue is with the call to getcwd.--- This perlbug was built using Perl v5.8.8 - Tue Jan 23 15:57:26 2007 Site configuration information for perl v5.8.8: Configured by batserve at Thu Jun 7 18:52:55 2007. Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Locally applied patches: @INC for perl v5.8.8: Environment for perl v5.8.8: |
From Gadi.Reinhorn@mathworks.comThis is an accidental Duplicate of [perl #47115]. Gadi |
From david@landgren.netGadi Reinhorn wrote:
I saw that. I have merged this ticket into #47115
No problems. Now to understand and fix the bug. 0x5c is backslash if I
|
The RT System itself - Status changed from 'new' to 'open' |
From @janduboisOn Fri, 02 Nov 2007, David Landgren wrote:
It is. It is also the Yen sign or the Won sign in certain Japanese and But the problem here is that Shift-JIS is a variable length encoding, and I don't think you can do much about it though, as you don't know the Cheers, |
From Gadi.Reinhorn@mathworks.comJan, You are right about the nature of the Shift-JIS encoding. Yet, the I'm not sure how to handle this, but I didn't see getcwd on the list of http://search.cpan.org/~nwclark/perl-5.8.8/pod/perlunicode.pod#When_Unic When I replace getcwd with a system call to PWD, my program works. I'm going to work around this by not calling rmtree, but it would be Thanks for looking into this. Gadi -----Original Message----- On Fri, 02 Nov 2007, David Landgren wrote:
It is. It is also the Yen sign or the Won sign in certain Japanese and But the problem here is that Shift-JIS is a variable length encoding, I don't think you can do much about it though, as you don't know the Cheers, |
Migrated from rt.perl.org#47115 (status was 'open')
Searchable as RT47115$
The text was updated successfully, but these errors were encountered: