mirror of
https://github.com/golang/go
synced 2024-11-02 08:01:26 +00:00
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
This commit is contained in:
parent
256cd7e78e
commit
afac01df48
1 changed files with 7 additions and 1 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue