From: Rob Pike Date: Thu, 6 Sep 2012 17:37:13 +0000 (-0700) Subject: spec: ignore BOMS outside of string and rune literals. X-Git-Tag: go1.1rc2~2517 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=afac01df48189013e62f5d2285b8e3b6d38e3f44;p=gostls13.git spec: ignore BOMS outside of string and rune literals. Happy Birthday UTF-8. R=golang-dev, rsc, 0xjnml CC=golang-dev https://golang.org/cl/6506083 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 2350fdbad8..195f7a3c24 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -99,6 +99,12 @@ are different characters. Implementation restriction: For compatibility with other tools, a compiler may disallow the NUL character (U+0000) in the source text.

+

+Implementation restriction: For compatibility with other tools, a +compiler may ignore any UTF-8-encoded Unicode byte order mark +(U+FEFF) in the source text outside of string +and rune literals. +

Characters