From afac01df48189013e62f5d2285b8e3b6d38e3f44 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Thu, 6 Sep 2012 10:37:13 -0700 Subject: [PATCH] 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 --- doc/go_spec.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index 2350fdbad80..195f7a3c244 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