Status: New
Labels: Type-Defect Priority-Medium

New issue 322 by Grigand: Add support for parsing text files that contain a BOM, or UTF preamble for protoc.exe input

What steps will reproduce the problem?
1. Create a new text file in Visual Studio
2. Enter a valid proto definition
3. Run protoc.exe on the input file

What is the expected output? Successful compilation.

What do you see instead? The following error message:
FileName.proto:1:1: Expected top-level statement (e.g. "message").

What version of the product are you using? On what operating system?
libprotoc 2.3.0, Windows 7
libprotoc 2.4.1, Windows 7

Please provide any additional information below.

I would be happy if it just recognized the UTF-8 BOM and skipped it for now; however, full utf-8 support would be nice. If it's not a lot of work, utf-16be and utf-16le would also be appropriate.

You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to