www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11735] New: pragma(msg, ...) fails to print wstring, dstring

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

           Summary: pragma(msg, ...) fails to print wstring, dstring
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: yazan.dabain gmail.com


--- Comment #0 from yazan.dabain gmail.com 2013-12-13 04:41:49 PST ---
Code:

pragma(msg, "printed correctly");
pragma(msg, "prints 'p' only"w);
pragma(msg, "prints 'p' only"d);

void main() {}

Output:

printed correctly
p
p

Expected output:

printed correctly
prints 'p' only
prints 'p' only

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 13 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11735



--- Comment #1 from github-bugzilla puremagic.com 2013-12-14 06:24:51 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/117fc133f078de7bfb312d547378e32ca4f17b51
Merge pull request #2959 from yazd/fix-11735

Issue 11735 - pragma(msg, ...) fails to print wstring, dstring

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 14 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11735


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 14 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11735


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|FIXED                       |


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2014-03-14
10:38:37 PDT ---
The fix is incomplete, the following doesn't print properly:

void main()
{
    enum a = "foo";
    enum b = "foo"w;
    enum c = "foo"d;

    pragma(msg, a);  // foo
    pragma(msg, b);  // f
    pragma(msg, c);  // f
}

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 14 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11735



--- Comment #3 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2014-03-14
10:44:25 PDT ---
https://github.com/D-Programming-Language/dmd/pull/3381

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 14 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11735



--- Comment #4 from github-bugzilla puremagic.com 2014-03-14 21:45:33 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/c70e229476adea5c2979d855d68618253154a8a4
Fixes Issue 11735 - pragma(msg) doesn't work with wchar/dchar strings.

https://github.com/D-Programming-Language/dmd/commit/dea20e73f78649102b4a7945e976198dd8a5c51f
Merge pull request #3381 from AndrejMitrovic/Fix11735

Fixes Issue 11735 - pragma(msg) doesn't work with wchar/dchar strings.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 14 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11735


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |yebblies gmail.com
         Resolution|                            |FIXED


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 14 2014