From fad10f9c1cba2aef54ef3822d6c3688eb1c25483 Mon Sep 17 00:00:00 2001 From: Russ Cox <rsc@golang.org> Date: Thu, 23 Feb 2012 22:46:04 -0500 Subject: [PATCH] spec: allow disallow of \uFFFD in import path 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index 797e4038f0..abb1735e85 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -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>!"#$%&'()*,:;<=>?[\]^`{|}</code>. +spaces) and may also exclude the characters +<code>!"#$%&'()*,:;<=>?[\]^`{|}</code> +and the Unicode replacement character U+FFFD. </p> <p> -- 2.30.9