[Issue 615] New: dmd does not properly read dmd.conf with Unix	line-ending characters
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Nov 27 15:34:43 PST 2006
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=615
           Summary: dmd does not properly read dmd.conf with Unix line-
                    ending characters
           Product: D
           Version: 0.175
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: rael at zopyra.com
Using dmd.conf edited on linux, dmd does not appear to grok it.  If I copy a
dmd.conf edited on Windows, it parses it properly.  The two files differ in
line endings only.  If I had to guess, it is an error in inifile.c, in the
method inifile(), somewhere around line 272 or below.
To reproduce, I compiled a simple program as follows:
% dmd hello.d
using the linux-edited dmd.conf file:
[Environment]
DFLAGS=-I/opt/dmd/src/phobos
And this failed.  Using an explicit command-line argument:
% dmd -I/opt/dmd/src/phobos hello.d
works.  If I use the Windows-edited dmd.conf file, it works either way.
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list