Hi Gerrit,

Hi,

On Wed, 2005-05-25 at 12:48 +0200, Christoph Fuenfzig wrote:

Hi Andreas, hi Dirk,

Andreas Zieringer wrote:


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

Of course, you are right. That was a bad try.
A special case for absolute WIN32 paths with UNIX directory separators, like "d:/Model/gotsman/horse.wrl"


the small problem might be, that this is undecidable without external
knowledge inside the path handler.

I would put the fix inside findFile, where you know what you get is
one element and work from there. AnalysePath is most likely the wrong
place without and might break existing setups.

yes this was my first approach just replace the / with \ but this would give conflicts with windows network paths like //server/data/bla.... and won't help with the path list.

This still has the problem with adding a path list but it should not
break anything.

Can you give me an example what could break with my fix in analysePath() I put the fix between WIN32 ifdef's so on unix it behaves like before and on windows even better.

regards,
  gerrit

PS: just curios, is the D:/xxx/xx path the result from a file open
    dialog ??

Looks like the qt filedialog this returns always wrong paths with /

Andreas


--
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

Reply via email to