texlive[66539] Build/source/texk/dvisvgm: patch for mupdf

commits+karl at tug.org commits+karl at tug.org
Sat Mar 11 16:50:16 CET 2023


Revision: 66539
          http://tug.org/svn/texlive?view=revision&revision=66539
Author:   karl
Date:     2023-03-11 16:50:15 +0100 (Sat, 11 Mar 2023)
Log Message:
-----------
patch for mupdf communication from marting

Modified Paths:
--------------
    trunk/Build/source/texk/dvisvgm/ChangeLog
    trunk/Build/source/texk/dvisvgm/dvisvgm-src/src/Process.cpp

Modified: trunk/Build/source/texk/dvisvgm/ChangeLog
===================================================================
--- trunk/Build/source/texk/dvisvgm/ChangeLog	2023-03-11 13:56:29 UTC (rev 66538)
+++ trunk/Build/source/texk/dvisvgm/ChangeLog	2023-03-11 15:50:15 UTC (rev 66539)
@@ -1,3 +1,10 @@
+2023-03-11  Karl Berry  <karl at freefriends.org>
+
+	* dvisvgm-src/src/Process.cpp: apply last-minute patch for
+	communication with mupdf, in lieu of importing the whole release.
+	https://github.com/mgieseki/dvisvgm/issues/232
+	https://github.com/mgieseki/dvisvgm/commit/f0ab3d07c942acc1d3fd0d8b94498a355fa92d6c.patch
+
 2023-02-28  Luigi Scarso  <luigi.scarso at gmail.com>
 
 	* dvisvgm-src/src/ttf/Makefile.am (AM_CXXFLAGS): add ZLIB_INCLUDES,

Modified: trunk/Build/source/texk/dvisvgm/dvisvgm-src/src/Process.cpp
===================================================================
--- trunk/Build/source/texk/dvisvgm/dvisvgm-src/src/Process.cpp	2023-03-11 13:56:29 UTC (rev 66538)
+++ trunk/Build/source/texk/dvisvgm/dvisvgm-src/src/Process.cpp	2023-03-11 15:50:15 UTC (rev 66539)
@@ -118,10 +118,13 @@
 	Subprocess subprocess;
 	if (!subprocess.run(_cmd, _paramstr, flags))
 		return false;
+	if (out)
+		out->clear();
 	for (;;) {
 		if (out) {
-			out->clear();
-			subprocess.readFromPipe(*out, pattern);
+			string chunk;
+			subprocess.readFromPipe(chunk, pattern);
+			*out += chunk;
 		}
 		Subprocess::State state = subprocess.state();
 		if (state != Subprocess::State::RUNNING)



More information about the tex-live-commits mailing list.