http://d.puremagic.com/issues/show_bug.cgi?id=2639
Summary: Hex and octal string values not completely specified Product: D Version: 2.023 Platform: PC URL: http://www.digitalmars.com/d/2.0/lex.html OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: www.digitalmars.com AssignedTo: bugzi...@digitalmars.com ReportedBy: jlqu...@optonline.net The spec implies that a string literal containing hex and octal values is assembled in UTF-8, but doesn't say so explicitly. The text says that hex and octal values can be used to build binary data. If you have something like: dstring ds = "\U00101234\x7f"d what are the actual bytes in the string ds? Without defining explicitly, it allows for 00 10 12 34 7f 00 00 00 on a big-endian machine as opposed to the probably intended 00 10 12 34 00 00 00 7f --