[swift-users] emoji in source code failed to compile in linux ubuntu

Dmitri Gribenko gribozavr at gmail.com
Fri Dec 4 14:40:34 CST 2015

On Fri, Dec 4, 2015 at 12:22 PM, Jens Alfke <jens at mooseyard.com> wrote:
> On Dec 4, 2015, at 11:47 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> On Fri, Dec 4, 2015 at 11:25 AM, Jens Alfke <jens at mooseyard.com> wrote:
> In other words, during UTF-8 encoding, some Unicode codepoints need to be
> broken into surrogate pairs. Therefore a UTF-8 decoder needs to recognize
> surrogate pairs and reassemble them into a single codepoint. That’s what’s
> not happening in this case.
> No, surrogate code points can not appear in a UTF-8 stream, they can
> only appear in UTF-16.
> http://www.unicode.org/versions/Unicode8.0.0/ch02.pdf page 30, table 2-3.
> Thanks for referencing the spec — that was useful to me. However, this looks
> like an issue where spec conformance clashes with real-world desire for
> compatibility.

Violating the spec in this part would cause security issues, since
different implementations would disagree on the character data.
Sorry, but we are not doing this.  The Unicode spec is unambiguous


(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/

More information about the swift-users mailing list