Summary: Invalid UTF-8 sequences allowed in strings with 'c'
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Aziz K�ksal <> 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:
------- You are receiving this mail because: -------

Reply via email to