Hi all,

I sometimes have problems with filenames under WIN32.
For example "d:/Model/gotsman/horse.wrl" does not work for me in SceneFileHandler::the().read(..).
Admittedly, it is a mixture of Unix and WIN32-style absolute filename.

I fixed it here by adding a special case to PathHandler::splitPathList
void PathHandler::splitPathList(const Char8    *pathList,
                               const Char8     pathSep,
                                     PathList &result)
{
   std::string::size_type currPos    = 0;
   std::string::size_type startPos   = 0;
   std::string            workString(pathList);

   currPos = workString.find(pathSep);
   // CF added
if (currPos+1 < workString.size() && workString[currPos+1] == _dirSepUnix) {
      // absolute path for WIN32 with Unix directory separators
      currPos = std::string::npos;
   }
...
}

Can you check that and fix it, please!

Thanks,
Christoph



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to