Boost logo

Boost-Commit :

From: ghost_at_[hidden]
Date: 2007-10-09 01:33:45


Author: vladimir_prus
Date: 2007-10-09 01:33:45 EDT (Tue, 09 Oct 2007)
New Revision: 39828
URL: http://svn.boost.org/trac/boost/changeset/39828

Log:
Make NORMALIZE_PATH convert \ to /.

Text files modified:
   trunk/tools/jam/src/builtins.c | 8 +++++++-
   1 files changed, 7 insertions(+), 1 deletions(-)

Modified: trunk/tools/jam/src/builtins.c
==============================================================================
--- trunk/tools/jam/src/builtins.c (original)
+++ trunk/tools/jam/src/builtins.c 2007-10-09 01:33:45 EDT (Tue, 09 Oct 2007)
@@ -1334,8 +1334,14 @@
         if (arg)
             string_append(in, "/");
     }
-
 
+ /* Convert \ into /. On windows, paths using / and \ are equivalent,
+ and we want this function to obtain canonic representation. */
+ for (current = in->value, end = in->value + in_size; current < end; ++current)
+ if (*current = '\\')
+ * current = '/';
+
+
     end = in->value + in->size - 1;
     current = end;
     


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