aboutsummaryrefslogtreecommitdiff
path: root/src/unicode
diff options
context:
space:
mode:
authorMarcel van Lohuizen <mpvl@golang.org>2015-08-19 20:28:18 +0200
committerMarcel van Lohuizen <mpvl@golang.org>2015-08-24 15:05:48 +0000
commitc714bbbfd37f6eb542c99899693bf5088ee07cb9 (patch)
tree2bfc2cb0d52f46d12103befd0f5061a127b490ce /src/unicode
parent1870c81205534cd2bce729f3100f62da349d82e2 (diff)
downloadgo-c714bbbfd37f6eb542c99899693bf5088ee07cb9.tar.gz
go-c714bbbfd37f6eb542c99899693bf5088ee07cb9.zip
unicode: include rune 0 in RangeTables.
All of Go passes. No changes for the text repo. Fixes #10153 Change-Id: I313369bf471c8974390a6d42075e5c54f6a81750 Reviewed-on: https://go-review.googlesource.com/13667 Reviewed-by: Russ Cox <rsc@golang.org> Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/unicode')
-rw-r--r--src/unicode/maketables.go3
-rw-r--r--src/unicode/tables.go4
2 files changed, 2 insertions, 5 deletions
diff --git a/src/unicode/maketables.go b/src/unicode/maketables.go
index 9fccdecafa..e0110c9536 100644
--- a/src/unicode/maketables.go
+++ b/src/unicode/maketables.go
@@ -261,9 +261,6 @@ func parseCategory(line string) (state State) {
logger.Fatalf("%.5s...: %s", line, err)
}
lastChar = rune(point)
- if point == 0 {
- return // not interesting and we use 0 as unset
- }
if point > MaxChar {
return
}
diff --git a/src/unicode/tables.go b/src/unicode/tables.go
index 370a9d1174..8bb42062f9 100644
--- a/src/unicode/tables.go
+++ b/src/unicode/tables.go
@@ -53,7 +53,7 @@ var Categories = map[string]*RangeTable{
var _C = &RangeTable{
R16: []Range16{
- {0x0001, 0x001f, 1},
+ {0x0000, 0x001f, 1},
{0x007f, 0x009f, 1},
{0x00ad, 0x0600, 1363},
{0x0601, 0x0605, 1},
@@ -81,7 +81,7 @@ var _C = &RangeTable{
var _Cc = &RangeTable{
R16: []Range16{
- {0x0001, 0x001f, 1},
+ {0x0000, 0x001f, 1},
{0x007f, 0x009f, 1},
},
LatinOffset: 2,