From 149aeecf48edd6e3038c7fe99dc05e82402cb8db Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 2 Jul 2024 00:04:30 +0200 Subject: [PATCH 1/2] Fix issue #37519 --- src/sage/interfaces/qepcad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/interfaces/qepcad.py b/src/sage/interfaces/qepcad.py index 1d1c81dac68..f6c90053bdb 100644 --- a/src/sage/interfaces/qepcad.py +++ b/src/sage/interfaces/qepcad.py @@ -839,7 +839,7 @@ def __init__(self, formula, self._cell_cache = {} if verbose: - logfile = sys.stdout + logfile = sys.stdout.buffer varlist = None if vars is not None: From bf638d3e486220781b83630ac13335fd4ed99311 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 2 Jul 2024 10:01:53 +0200 Subject: [PATCH 2/2] Replacing sys.stdout with sys.stdout.buffer --- src/sage/interfaces/qepcad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/interfaces/qepcad.py b/src/sage/interfaces/qepcad.py index f6c90053bdb..68d8724e79b 100644 --- a/src/sage/interfaces/qepcad.py +++ b/src/sage/interfaces/qepcad.py @@ -809,7 +809,7 @@ def __init__(self, formula, A logfile can be specified with ``logfile``. If ``verbose=True`` is given, then the logfile is automatically - set to ``sys.stdout``, so all QEPCAD interaction is echoed to + set to ``sys.stdout.buffer``, so all QEPCAD interaction is echoed to the terminal. You can set the amount of memory that QEPCAD allocates with