New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
encoding/xml: incorrect EOF behavior in (*Decoder).Token #13757
Comments
This part has been resolved independently (by resolving #13683 and applying that fix to x/tools/go/vcs in https://golang.org/cl/18196). But the rest mentioned here ( |
Yes. |
Regression from Go 1.5. |
The change to Token was made by this commit: bf21643 It may just need a documentation update. |
Working as intended. CL 18854. Already mentioned in http://tip.golang.org/doc/go1.6. Note that "" is not a well-formed XML document: it is missing the "". |
CL https://golang.org/cl/18854 mentions this issue. |
The docstring for
(*Decoder).Token
says "At the end of the input stream, Token returns nil, io.EOF", but when this programhttp://play.golang.org/p/8pqgfMmPuU
is run using a tip (not Go 1.5) distribution, the resulting error is an
*xml.SyntaxError
.This bug is causing the
golang.org/x/tools/go/vcs
tests to fail.The text was updated successfully, but these errors were encountered: