FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bug: "" in PATH variables break bud

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
crackpots



Joined: 10 Feb 2006
Posts: 5

PostPosted: Sat Jan 13, 2007 12:52 am    Post subject: Bug: "" in PATH variables break bud Reply with quote

When paths in PATH variable are wrapped in quotes bud fails to find the dmd compiler and the config file as a result.

Example:

PATH=c:\d\dmd\bin;MORE_PATHS // Works
PATH="c:\d\dmd\bin";MORE_PATHS // Does not works
Back to top
View user's profile Send private message
lio



Joined: 28 Apr 2006
Posts: 10
Location: Beijing

PostPosted: Fri Jan 19, 2007 10:47 am    Post subject: fixed Reply with quote

Code:
Index: pathex.d
===================================================================
--- pathex.d   (revision 51)
+++ pathex.d   (working copy)
@@ -513,6 +513,11 @@
     lCompilerPath.length = 0;
     foreach(char[] lPath; lPaths)
     {
+        // Strip quotes. (What to do with path0;"path1;path2" ?)
+        if (lPath.length > 0 && lPath[0] == '"')
+            lPath = lPath[1..length];
+        if (lPath.length > 0 && lPath[length-1] == '"')
+            lPath = lPath[0..length-1];
         if (lPath.length > 0)
         {
             // Ensure that the path ends with a valid separator.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group