[CoinUtils-tickets] [COIN-OR Common Utilities] #49: mixed slash and backslash in CoinFileIO
COIN-OR Common Utilities
coin-trac at coin-or.org
Tue Apr 15 08:12:03 EDT 2008
#49: mixed slash and backslash in CoinFileIO
---------------------+------------------------------------------------------
Reporter: stefan | Owner:
Type: defect | Status: new
Priority: minor | Version:
Resolution: | Keywords:
---------------------+------------------------------------------------------
Comment (by stefan):
Hi,
sorry for the delay, I did not recognize that there was a reply to this
ticket.
I've tried what you suggested, but unfortunately it did not help.
Now, the file that CoinFileIO.cpp tries to open is
{{{.\..\..\Data\Sample\p0033.mps}}}.
I tried all the following combinations, and they are failing:
{{{
.\..\..\Data\Sample\p0033.mps
..\..\Data\Sample\p0033.mps
./../../Data/Sample/p0033.mps
../../Data/Sample/p0033.mps
<getcwd()>/../../Data/Sample/p0033.mps
<getcwd()>\..\..\Data\Sample\p0033.mps
}}}
But I found one that is working:
{{{../../../trunk/Data/Sample/p0033.mps}}}
The problem seem to be that Cgl tries to use a p0033.mps from the build
directory which has only a link to the p0033.mps in the source directory.
Opening such a link does not seem to work.
I also do not know how cygwin realizes these links. Opening it in the
Windows Explorer does not work, only cygwin seem to be able to open it.
You have a suggestion where I should file a bug report now? (Or should I
just forget about it? :-))
I'm now convinced that it is not !CoinUtils which is wrong.
Your suggested change in Cgl/test/unitTest.cpp should go into the Cgl code
I think.
Stefan
--
Ticket URL: <https://projects.coin-or.org/CoinUtils/ticket/49#comment:2>
COIN-OR Common Utilities <http://projects.coin-or.org/CoinUtils>
Common data structures and linear algebra functions for COIN-OR projects
More information about the CoinUtils-tickets
mailing list