summaryrefslogtreecommitdiff
path: root/doc/go_spec.html
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2012-09-06 10:37:13 -0700
committerRob Pike <r@golang.org>2012-09-06 10:37:13 -0700
commit1c493ccdb9b3160db3b0d1d12585d3f56db53de7 (patch)
treeda7c2db4404e3e671ab72bad68abaab3cf77ed13 /doc/go_spec.html
parent4f53de03a96776b5c9956ac91a9f8ee1161d5712 (diff)
downloadgo-1c493ccdb9b3160db3b0d1d12585d3f56db53de7.tar.gz
spec: ignore BOMS outside of string and rune literals.
Happy Birthday UTF-8. R=golang-dev, rsc, 0xjnml CC=golang-dev http://codereview.appspot.com/6506083
Diffstat (limited to 'doc/go_spec.html')
-rw-r--r--doc/go_spec.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 2350fdbad..195f7a3c2 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1,6 +1,6 @@
<!--{
"Title": "The Go Programming Language Specification",
- "Subtitle": "Version of September 4, 2012",
+ "Subtitle": "Version of September 6, 2012",
"Path": "/ref/spec"
}-->
@@ -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.
</p>
+<p>
+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 <a href="#String_literals">string</a>
+and <a href="#Rune_literals">rune</a> literals.
+</p>
<h3 id="Characters">Characters</h3>