Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Non-generated PostScript file diffs not shown #2962
What are GitHub's current criteria for displaying a diff?
My project consists of mostly non-generated PostScript whose files can be displayed individually but do not appear in diffs which is annoying since it means fewer eyes-on.
See this commit for example: bwipp/postscriptbarcode@3773466
It's not clear to me why a 7-bit clean file such as this isn't being diff'ed but will be displayed: https://github.com/bwipp/postscriptbarcode/blob/3773466e8b47e8f628f8ce17ec79d0651e3ed680/src/datamatrix.ps
linguist gives the following properties:
generated? => false
GitHub relies upon Linguist for this.
I think this result is coming from the
On 22 April 2016 at 00:53, Arfon Smith firstname.lastname@example.org wrote:
Sure, and thanks for the offer to look.
Are you able to determine which properties of Linguist are currently
I note that Linguist's
Perhaps the diff suppression is not using the best information available to it?
Marginally related: I've noticed GitHub doesn't respect a
Otherwise, I would've suggested an easy fix be putting
added a commit
Jun 29, 2016
On 6 Sep 2017 06:58, "John Gardner" <email@example.com> wrote: @sergey-s-betke <https://github.com/sergey-s-betke> What encoding are you using? It doesn't appear to be UTF-8. It could be that a regional character set is tricking GitHub into thinking the file is binary data, since it's failed to detect any UTF-8 sequences. It happens in spite of the encoding. See the examples and analysis in the earlier messages.
@Alhadis , PostScript file must be in ISOLatin1 encoding. Or in any one-byte-per-char encoding. PostScript does not support Unicode or any multibyte encodings or BOM prefix! And UTF-8. I use CP1251 encoding (for Cyrillic data) and CP1253 encoding (for greek data).