You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. http://play.golang.org/p/Gtvj9bhAFl
What is the expected output?
IsPrint('\u3000') returns true.
Please provide any additional information below.
U+3000 (Ideographic Space) is used as a space character in Japanese.
So It should be treated as a printable character.
The text was updated successfully, but these errors were encountered:
"IsPrint" is a Go-defined property, not a Unicode-defined one. The only space character
that satisfies IsPrint is the ASCII space. IsPrint gets used by things like %q to decide
whether to escape a rune or not. By admitting only a single space character, we make
sure that if you see something that looks like a space in a quoted string, it really is
an ASCII space, not some other Unicode space. This applies to all kinds of spaces, not
just Japanese spaces. For example, IsPrint('\u00A0') is false too.
If you want to allow all kinds of spaces, use the Unicode-defined "graphic" property,
called as unicode.IsGraphic.
by tts.yamamoto:
The text was updated successfully, but these errors were encountered: