www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1166] New: DMD doesn't support UTF encoded response files.

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1166

           Summary: DMD doesn't support UTF encoded response files.
           Product: D
           Version: 1.012
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: jcarrascal gmail.com


If an utf-* encoded file is used as a response file the compiler responds with
an error:

C:\dmd>type test.rsp
´╗┐test.d

C:\dmd>type test.d
void main()
{
}

C:\dmd>dmd  test.rsp
´╗┐test.d: module ´╗┐test cannot read file '´╗┐test.d'


-- 
Apr 19 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1166


smjg iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg iname.com
            Summary|DMD doesn't support UTF     |DMD doesn't support UTF
                   |encoded response files.     |encoded response files with
                   |                            |a byte-order mark





Those characters are the UTF-8 BOM, misinterpreted in code page 850 or similar.
 So the problem isn't so much that the .rsp is UTF encoded as the presence of a
BOM that's throwing it.


-- 
Sep 29 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1166


jcarrascal gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jcarrascal gmail.com





No, actually any non ASCII character will show you the same error:

C:\dmd>type césar.rsp
c├®sar.d

C:\dmd>dmd  césar.rsp
c├®sar.d: module c├®sar cannot read file 'c├®sar.d'


-- 
Sep 29 2007