From fad10f9c1cba2aef54ef3822d6c3688eb1c25483 Mon Sep 17 00:00:00 2001 From: Russ Cox 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 797e4038f04..abb1735e859 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 Unicode's L, M, N, P, and S general categories (the Graphic characters without -spaces) and may also exclude the ASCII characters -!"#$%&'()*,:;<=>?[\]^`{|}. +spaces) and may also exclude the characters +!"#$%&'()*,:;<=>?[\]^`{|} +and the Unicode replacement character U+FFFD.