Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] New file release for Csound 5 and CsoundVST on Windows

Date2005-03-08 19:56
From"gogins@pipeline.com"
SubjectRe: [Cs-dev] New file release for Csound 5 and CsoundVST on Windows
I have not seen this problem, so I presume that native windows handles / or
\ equally well.

Original Message:
-----------------
From: Istvan Varga istvan@csounds.com
Date: Tue, 08 Mar 2005 20:46:09 +0100
To: csound-devel@lists.sourceforge.net
Subject: Re: [Cs-dev] New file release for Csound 5 and CsoundVST on Windows


I have tried to run csound.exe with WINE and noticed that it cannot
find files, apparently because DIRSEP is not correctly defined for
Win32 in H/sysdep.h (it should be '\\', but the default '/' is used).
Does this problem also occur on native Windows ?


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-03-08 20:54
FromIstvan Varga
SubjectRe: [Cs-dev] New file release for Csound 5 and CsoundVST on Windows
gogins@pipeline.com wrote:

> I have not seen this problem, so I presume that native windows handles / or
> \ equally well.

Actually, the problem is not the directory separator character
(/ seems to work when using WINE as well), but rather that the file
search code checks if a directory is found instead of a file
(a possible error case) by trying to open the file with DIRSEP
appended to the name.
So, for example, if "test.wav" is searched and "./test.wav" is
found, "./test.wav/" is also tested and is expected to fail,
but it will not with WINE, even if test.wav is really a file.
The extra checking may be removed, though, if necessary.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-03-09 14:07
FromIstvan Varga
SubjectRe: [Cs-dev] New file release for Csound 5 and CsoundVST on Windows
I changed DIRSEP to '\\' and #ifdef'd out the directory test for WIN32.

Istvan Varga wrote:

> gogins@pipeline.com wrote:
> 
>> I have not seen this problem, so I presume that native windows handles 
>> / or
>> \ equally well.
> 
> 
> Actually, the problem is not the directory separator character
> (/ seems to work when using WINE as well), but rather that the file
> search code checks if a directory is found instead of a file
> (a possible error case) by trying to open the file with DIRSEP
> appended to the name.
> So, for example, if "test.wav" is searched and "./test.wav" is
> found, "./test.wav/" is also tested and is expected to fail,
> but it will not with WINE, even if test.wav is really a file.
> The extra checking may be removed, though, if necessary.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net