You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2013/05/16 00:28:48 UTC

[lucy-commits] [14/21] git commit: refs/heads/master - Quote Windows DIR_SEP

Quote Windows DIR_SEP


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/d7f3fa8b
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/d7f3fa8b
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/d7f3fa8b

Branch: refs/heads/master
Commit: d7f3fa8b851caceb62ea2fc886f2e8f73d9ab4c1
Parents: 07c2770
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Wed May 15 21:57:16 2013 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Wed May 15 21:57:16 2013 +0200

----------------------------------------------------------------------
 charmonizer/src/Charmonizer/Probe/DirManip.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/d7f3fa8b/charmonizer/src/Charmonizer/Probe/DirManip.c
----------------------------------------------------------------------
diff --git a/charmonizer/src/Charmonizer/Probe/DirManip.c b/charmonizer/src/Charmonizer/Probe/DirManip.c
index 47f68df..c6465d7 100644
--- a/charmonizer/src/Charmonizer/Probe/DirManip.c
+++ b/charmonizer/src/Charmonizer/Probe/DirManip.c
@@ -177,7 +177,11 @@ chaz_DirManip_run(void) {
         chaz_ConfWriter_add_def("MAKEDIR_MODE_IGNORED", "1");
     }
 
-    {
+    if (strcmp(dir_sep, "\\") == 0) {
+        chaz_ConfWriter_add_def("DIR_SEP", "\"\\\\\"");
+        chaz_ConfWriter_add_def("DIR_SEP_CHAR", "'\\\\'");
+    }
+    else {
         char scratch[5];
         sprintf(scratch, "\"%s\"", dir_sep);
         chaz_ConfWriter_add_def("DIR_SEP", scratch);