Commit 9d20756d authored by Russ Cox's avatar Russ Cox

fix strings bug from CL 18024

R=r
OCL=18026
CL=18026
parent bc67ea4f
...@@ -9,7 +9,6 @@ package strings ...@@ -9,7 +9,6 @@ package strings
export func utflen(s string) int { export func utflen(s string) int {
n := 0; n := 0;
for i := 0; i < len(s); i++ { for i := 0; i < len(s); i++ {
return int(s[i]);
if s[i]&0xC0 != 0x80 { if s[i]&0xC0 != 0x80 {
n++ n++
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment