]> Cypherpunks repositories - gostls13.git/commitdiff
spec: allow disallow of \uFFFD in import path
authorRuss Cox <rsc@golang.org>
Fri, 24 Feb 2012 03:46:04 +0000 (22:46 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 24 Feb 2012 03:46:04 +0000 (22:46 -0500)
Turns out U+FFFD is a graphic character too.

http://play.golang.org/p/YblCfKAfko

R=gri
CC=golang-dev
https://golang.org/cl/5699052

doc/go_spec.html

index 797e4038f04d35c6b2ef4b2672e33e7614dcee79..abb1735e8599e6b70fbf055774fabb1cdd62a67d 100644 (file)
@@ -5101,8 +5101,9 @@ Implementation restriction: A compiler may restrict ImportPaths to
 non-empty strings using only characters belonging to
 <a href="http://www.unicode.org/versions/Unicode6.0.0/">Unicode's</a>
 L, M, N, P, and S general categories (the Graphic characters without
-spaces) and may also exclude the ASCII characters
-<code>!"#$%&amp;'()*,:;&lt;=&gt;?[\]^`{|}</code>.
+spaces) and may also exclude the characters
+<code>!"#$%&amp;'()*,:;&lt;=&gt;?[\]^`{|}</code>
+and the Unicode replacement character U+FFFD.
 </p>
 
 <p>