MantisBT - Community
View Issue Details
0000309Community[OCCT] OCCT:Foundation Classespublic2002-04-17 17:032013-10-29 09:57
emo 
pop 
nonetrivial 
closedfixed 
All
 
[OCCT] 5.0.0 
0000309: bug in OSD_Path::UpTrek
This bug has been added by Stephane Routelous stephane.routelous@sympatico.ca at
http://www.opencascade.org/forumorg/bug.php?bug_id=42&f=8 [^]
Hi,

I found a bug in OSD_Path::UpTrek().
I'm on Linux ( Suse7.2 ) using gcc version 2.95.3 20010315 (SuSE)
OCC 4.0 release

#include
#include
#include
#include

int main(int argc, char *argv[])
{
OSD_Process p;
OSD_Path d = p.CurrentDirectory();
TCollection_AsciiString s;
d.SystemName(s);
cout << "*" << s.ToCString() << "*" << endl;
d.UpTrek();
d.SystemName(s);
cout << "*" << s.ToCString() << "*" <<endl;
return 0;
}

the output :
*/home/sroutelous/tmp/bugOSDPath/*
**

should be :
*/home/sroutelous/tmp/bugOSDPath/*
*/home/sroutelous/tmp/*

Wokaround :
OSD_Path d = p.CurrentDirectory();
TCollection_AsciiString s;
d.SystemName(s);
OSD_Path dd(s);
dd.UpTrek();

here dd is OK.
No tags attached.
parent of 0024296assigned ski Open CASCADE Test "bugs fclasses bug309" is crashed if current directory is into disc-root 
Not all the children of this issue are yet resolved or closed.
Issue History
2002-05-13 12:03bugmasterAssigned Tobugmaster => pop
2002-05-13 12:03bugmasterStatusnew => assigned
2002-05-20 15:30bugmasterStatusassigned => verified
2002-08-01 18:40bugmasterStatusverified => closed
2002-08-01 18:40bugmasterResolution@0@ => fixed
2011-08-02 11:23bugmasterCategoryOCCT:FDC => OCCT:Foundation Classes
2011-12-15 17:54bugmasterProjectOpen CASCADE => Community
2013-10-29 09:57nbvRelationship addedparent of 0024296

There are no notes attached to this issue.