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
We are reading in UTF8 text, the spec does not say that it must be ASCII; so we should not assume ASCII only spaces. The other characters are unlikely to have an issue with UTF8 as they are equivalent, so I did not call it out -- though the errors can be funky.
readWhitespace
assumes all text is ASCII. The function should decode runes correctly and then check to see if they are spaces.Can not test runes this way:
https://github.com/go-spatial/geom/blob/master/encoding/wkt/wkt_decode.go#L55-L57
You need to read all the bytes in the run before testing it.
Here is a test case with the failures:
The text was updated successfully, but these errors were encountered: