-------- Original Message -------- Subject: OpenSG2 fails to load files containing a ':' on unix Date: Tue, 10 Mar 2009 10:42:37 +0000 From: [email protected] To: [email protected]
I've tried registering this a new ticket on trac however it keeps on getting rejected as spam. (I guess the settings are bit high since I was logged in as well) Priority : minor Component : System (OSGBase) Version : 2.0 In OpenSG 1.8 a filename could contain a ':' and still be loaded. For example the full file path of "/home/dave/test:filename.wrl" could be loaded. However in version 2 it checks if a file exists by seeing if it can read "/home/dave/test" which doesn't necessary exist. Looking back over the changes between 1.8 and 2.0 I've worked out what changed. Changing it back works as expected however I don't know why it was changed in the first place, so it may need fixing else where instead of reverting the change. The svn diff is highlighting what I changed back on my system for it to work is attached. Dave Helps if I provide a patch which builds :) Dave -- David Morris Research Assistant School of Computing, Mathematics and Information Sciences, Room 108 Watts Building Lewes Road University of Brighton Bright BN2 4GJ UK +44 (0)1273 642917 IRC : davemorris on irc.freenode.net Jabber : [email protected]
Index: opensg/Source/Base/Base/OSGPathHandler.cpp
===================================================================
--- opensg/Source/Base/Base/OSGPathHandler.cpp (revision 1810)
+++ opensg/Source/Base/Base/OSGPathHandler.cpp (working copy)
@@ -113,9 +113,9 @@
{
if((pType & TypeMask) == AbsPath)
{
- SINFO << "Check abs : " << tmpList.front() << std::endl;
+ SINFO << "Check abs : " << fileName << std::endl;
- if(File::tstAttr(tmpList.front().c_str(),
+ if(File::tstAttr(fileName,
AccessFlags::IsReadable))
{
returnValue.assign(fileName);
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------
_______________________________________________ Opensg-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-core
