Re: wstring hex literals

2017-09-20 Thread jmh530 via Digitalmars-d-learn
On Wednesday, 20 September 2017 at 16:26:46 UTC, Neia Neutuladh wrote: On Wednesday, 20 September 2017 at 15:04:08 UTC, jmh530 wrote: testing_utf16.d(5): Error: Truncated UTF-8 sequence testing_utf16.d(6):while evaluating: static assert((_error_) == (wstring )) Failed: ["dmd",

Re: wstring hex literals

2017-09-20 Thread Neia Neutuladh via Digitalmars-d-learn
On Wednesday, 20 September 2017 at 15:04:08 UTC, jmh530 wrote: testing_utf16.d(5): Error: Truncated UTF-8 sequence testing_utf16.d(6):while evaluating: static assert((_error_) == (wstring )) Failed: ["dmd", "-unittest", "-v", "-o-", "testing_utf16.d", "-I."]

wstring hex literals

2017-09-20 Thread jmh530 via Digitalmars-d-learn
I don't seem to be having any issues making strings or dstrings from hex, but I run into some issues with wstrings. Of course, my knowledge of UTF-16 is limited, but I don't see any issues with the code below and I get some errors on the hex string literal. unittest { wchar data = 0x03C0;