Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mpvl committed Aug 24, 2015
1 parent 1870c81 commit c714bbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/unicode/maketables.go
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions src/unicode/tables.go
Expand Up @@ -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},
Expand Down Expand Up @@ -81,7 +81,7 @@ var _C = &RangeTable{

var _Cc = &RangeTable{
R16: []Range16{
{0x0001, 0x001f, 1},
{0x0000, 0x001f, 1},
{0x007f, 0x009f, 1},
},
LatinOffset: 2,
Expand Down

0 comments on commit c714bbb

Please sign in to comment.