http://d.puremagic.com/issues/show_bug.cgi?id=8800

           Summary: Invalid UTF-8 sequences allowed in strings with 'c'
                    postfix.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: aziz.koek...@gmail.com


--- Comment #0 from Aziz K�ksal <aziz.koek...@gmail.com> 2012-10-11 05:56:24 
PDT ---
Consider this code:

auto s1 = "\x80";  // No error.
auto s2 = "\x80"c; // No error.
auto s3 = "\x80"w; // Error: invalid UTF-8 sequence
auto s4 = "\x80"d; // Error: invalid UTF-8 sequence

When the user explicitly appends the c-postfix, I think for consistency's sake,
the string should be validated and invalid UTF-8 sequences should be rejected.

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

Reply via email to