José Matos b1860e301a Attempt to fix #11457
In python 3 the colors need to be strings and not bytes:

This was the equivalent of

>> print("%s" % b"1")
"b'1'"

since the colors were bytes the call to dvipng was something like

dvipng -Ttight -depth -height -D 115 -fg "b'rgb 0.937255 0.941176 0.945098'" -bg "b'rgb 0.137255 0.149020 0.160784'"  "lyxpreviewxBJEqm.dvi"

Note the "b'rgb after both -fg and -bg that wrecked havoc and thus dvipng failed. That was the difference between python2 and python3 calls.

(cherry picked from commit 8dd31803b16d1fb6b30772955188c3595437f64a)
2019-10-30 19:27:50 -04:00
..
2019-08-09 08:06:23 +02:00
2011-04-02 11:00:19 +00:00
2018-12-28 23:35:07 -05:00
2019-10-30 19:27:50 -04:00
2011-02-21 19:56:43 +00:00
2019-06-25 21:21:47 +02:00
2019-09-11 10:46:07 +02:00
2019-06-27 23:53:03 +02:00
2019-07-25 00:05:39 -04:00
2019-08-27 17:35:54 +02:00
2018-08-28 15:22:50 -04:00