The Case Against Autodecode

tsbockman via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 2 12:34:41 PDT 2016


On Thursday, 2 June 2016 at 19:05:44 UTC, Andrei Alexandrescu 
wrote:
> Pretty much everything. Consider s and s1 string variables with 
> possibly different encodings (UTF8/UTF16).
> ...

Your 'รถ' examples will NOT work reliably with auto-decoded code 
points, and for nearly the same reason that they won't work with 
code units; you would have to use byGrapheme.

The fact that you still don't get that, even after a dozen plus 
attempts by the community to explain the difference, makes you 
unfit to direct Phobos' Unicode support. Please, either go study 
Unicode until you really understand it, or delegate this issue to 
someone else.


More information about the Digitalmars-d mailing list