Boost logo

Boost-Build :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2008-04-21 02:53:33


Mat Marcus wrote:

[...]

> Ok, thanks. Yes, my patch was incorrect. Here's the situation. My
> cygwin is rooted at C:\. So on my drive the path "c:\\foo\\bar"
> round-trips through a cygwin path back to a windows path at
> "C:\\foo\\bar", and the assert fails. I missed the case-sensitive
> issue and first and incorrectly transformed the meaning of strcmp in
> my mind, since the strings were "obviously equal". After rejecting
> solutions involving stricmp (non-portable, and a few other ideas, the
----------------------^^^^^^^
> current best that I can come up with is the admittedly ugly:
>
> assert( stricmp( l->string, "c:\\foo\\bar" ) == 0
------------^^^^^^^
> || stricmp( l->string, "C:\\foo\\bar" ) == 0);
------------------^^^^^^^

Hmm, are you sure you really meant to use stricmp() in the assert()? Just
wondering...

Markus


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk