[Issue 8800] New: Invalid UTF-8 sequences allowed in strings with 'c' postfix.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 11 06:20:35 PDT 2012
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: nobody at puremagic.com
ReportedBy: aziz.koeksal at gmail.com
--- Comment #0 from Aziz Köksal <aziz.koeksal at 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: -------
More information about the Digitalmars-d-bugs
mailing list