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
ignore UTF-8 BOM #601
ignore UTF-8 BOM #601
Conversation
Add test cases? |
+1 to adding a test(s) |
@@ -762,6 +762,13 @@ bool Tokenizer::NextWithComments(string* prev_trailing_comments, | |||
next_leading_comments); | |||
|
|||
if (current_.type == TYPE_START) { | |||
if (TryConsume((char)0xEF)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proto file start -> Proto file starts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps add a comment saying this adds support for reading UTF-8 BOM 0xFE, 0xBB, 0xBF prologue.
Tests added |
LGTM, good to merge after travis & appveyor are green. |
LGTM |
…map and inner message fields), fixes protocolbuffers#601
fix #592
@jtattermusch @xfxyjwf