Enrico Forestieri bd6d09fc98 Fix Python 3 issues when generating preview snippets
The log file generated by latex can contain strings encoded in
whatever supported encoding. Instead of guessing the encoding,
it is better to open it in binary mode and then performing the
necessary comparisons as "bytes". In order to do this, the
strings are encoded in utf8, so that, for example, b"pythön" is
encoded as "pyth\xc3\xb6n" (7 bytes). Of course, this means that
we can only successfully perform comparisons with ascii strings.
However, this is what we actually do, as we only search for
ascii strings in the log file.
2020-03-14 17:19:08 +01:00
..
2018-06-09 09:48:41 +02:00
2017-04-15 00:05:40 +02:00
2012-02-02 22:30:38 +00:00
2018-08-20 09:25:22 +02:00
2020-02-24 19:07:31 -05:00