Hi Christoph,
this patch works for windows but that's a bad idea for unix. Splitting
something like "/usr/lib/...:/usr/bin/..." wouldn't work anymore. The
problem is that the analysePath() method thinks this a unix path and
tries to split it with ":" and not ";".
I try to fix the analysePath() method.
Andreas
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
--
Andreas Zieringer [EMAIL PROTECTED]
Fraunhofer IGD - A4 phone +49 (0)6151 155 289
Fraunhoferstr. 5 fax +49 (0)6151 155 196
D-64283 Darmstadt www.igd.fhg.de/www/igd-a4
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users