diff options
author | Rob Pike <r@golang.org> | 2009-08-31 13:01:25 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2009-08-31 13:01:25 -0700 |
commit | e44fe9529859922b4c68899da458777534e3806b (patch) | |
tree | 578f2cfc35f2d3d0e404f95090f554a8cfd31620 /src/pkg/strconv | |
parent | 2094185f13a033d36bb6245da640b919c5bebaf1 (diff) | |
download | golang-e44fe9529859922b4c68899da458777534e3806b.tar.gz |
rearrange some constants. unicode package now defines MaxRune and ReplacementChar.
utf8 package imports unicode to get those definitions.
regenerate dependencies.
R=rsc
DELTA=41 (19 added, 3 deleted, 19 changed)
OCL=34123
CL=34129
Diffstat (limited to 'src/pkg/strconv')
-rw-r--r-- | src/pkg/strconv/quote.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkg/strconv/quote.go b/src/pkg/strconv/quote.go index f970ef518..e343f670c 100644 --- a/src/pkg/strconv/quote.go +++ b/src/pkg/strconv/quote.go @@ -6,6 +6,7 @@ package strconv import ( "os"; + "unicode"; "utf8"; ) @@ -175,7 +176,7 @@ func UnquoteChar(s string, quote byte) (value int, multibyte bool, tail string, value = v; break; } - if v > utf8.RuneMax { + if v > unicode.MaxRune { err = os.EINVAL; return; } |