Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPrometheus text parser barfs on UTF-8 BOMs #1679
Comments
This comment has been minimized.
This comment has been minimized.
|
Yeah, that's kind of expected. The text format is fully specified and doesn't include BOMs. What would be the rationale for supporting BOMs? (BTW: The code that handles this is in prometheus/common, so we should arguable move this issue over there. But let's see what comes out of it...) |
This comment has been minimized.
This comment has been minimized.
|
To be honest, I didn't know about BOMs yet, but research turned up: "A protocol SHOULD forbid use of U+FEFF as a signature for those textual protocol elements that the protocol mandates to be always UTF-8, the signature function being totally useless in those cases." |
This comment has been minimized.
This comment has been minimized.
|
Lucky you @juliusv. I can remember dark times with PHP, Windows and UTF-8 On Fri, May 27, 2016 at 5:02 PM, Julius Volz notifications@github.com
|
This comment has been minimized.
This comment has been minimized.
|
As far as I can tell, most "modern" Windows tools require them.
|
brian-brazil
added
the
kind/enhancement
label
Jul 13, 2016
This comment has been minimized.
This comment has been minimized.
|
We have a number of issues around the exposition format by now. How about moving them all into the docs repo, with a dedicated label? We should have clarity on the spec before starting any work, and the spec lives in the docs repo. So it might be the best point to track those issues. |
beorn7
referenced this issue
Sep 9, 2016
Closed
Exposition format: Specify how to deal with UTF-8 BOMs #542
This comment has been minimized.
This comment has been minimized.
|
Moved to prometheus/docs#542 |
beorn7
closed this
Sep 9, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
christianlavoie commentedMay 27, 2016
UTF-8 BOMs at the beginning of a text format string confuse the text parser (prometheus will complain about an invalid metric name). Tested with 1.9.1.