Hello,
It seems that the utf8.DecodeRune function does not check whether the
decoded rune falls outside of the Unicode range. Therefore, it does
not return the expected (RuneError, 1) result for a value such as
U+1FFFFF, as in the following example:
http://play.golang.org/p/H-8QAbmYaT
Is this a bug or by design? I expected the two print calls to output
the same thing.
- Max