[Issue 16554] Wrong result of string constant
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Sep 27 13:13:15 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16554
ag0aep6g at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |ag0aep6g at gmail.com
Resolution|--- |INVALID
--- Comment #1 from ag0aep6g at gmail.com ---
You're using an en dash for the minus sign there. That's code point U+2013,
which is encoded in UTF-8 with three code units / bytes. .length gives the
length in code units, so 16 is correct.
Closing as invalid. Please reopen if I missed something.
--
More information about the Digitalmars-d-bugs
mailing list