Bug in fullfile on windows
John W. Eaton
jwe at bevo.che.wisc.edu
Fri Feb 22 12:50:35 CST 2008
On 22-Feb-2008, Bovey, Richard (UK) wrote:
| I think I have identified a bug in fullfile. Unfortunately bug_report()
| did not work on my windows system.
|
| The bug is that fullfile() fails this test:
|
| assert (fullfile (filesep (), "foo"), strcat(filesep (),"foo"))
|
| The bug causes a problem in that it fails to create a directory with the
| following call on windows XP
|
| mkdir(fullfile('\','folder'))
|
| However either of the following calls work
|
| mkdir('\folder')
| mkdir(fullfile('\folder'))
|
| Please find attached a modified fullfile.m which includes a fix and the
| additional new test.
I used the following change instead. Does this also solve the problem
for you?
Since you didn't send a diff, I'm assuming you aldo don't have a patch
program, so I'm also attaching the complete modified file.
Thanks,
jwe
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080222/3016358e/attachment.ksh
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fullfile.m
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080222/3016358e/attachment-0001.ksh
More information about the Bug-octave
mailing list