Re: windows preview bug fix

2024-03-12 Thread Idan Pazi
I hereby grant a permission for all of my contributions to LyX to be licensed under the GPL version 2 or later. Thank you, Idan Pazi -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel

Re: windows preview bug fix

2024-02-24 Thread Idan Pazi
I have sys.flags.utf8_mode = 0. I assume everything is utf8, but I don't think the problem is about finding the right encoding. win32file.ReadFile returns bytes, which cannot be added (+) to a string (see data = "" at line 162). Assume that on some cases it returns a string, then this patch

windows preview bug fix

2024-02-16 Thread Idan Pazi
Encountered the following bug (windows 10, python 3.12) - preview of math fails: graphics\PreviewLoader.cpp (2ef): PreviewLoader::finishedInProgress(1): processing failed for py -3 -tt $$s/scripts/lyxpreview2bitmap.py --png