From 1cbdda1ec52e20b4fb18ab86824a3abde83dabac Mon Sep 17 00:00:00 2001
From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr>
Date: Wed, 17 Apr 2024 14:46:17 +0200
Subject: [PATCH] Solver: Log: Fix new line spliting (depend of OS).

---
 src/Solver/CommandLine.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Solver/CommandLine.py b/src/Solver/CommandLine.py
index c72cf735..4afcbc9a 100644
--- a/src/Solver/CommandLine.py
+++ b/src/Solver/CommandLine.py
@@ -276,7 +276,7 @@ class CommandLineSolver(AbstractSolver):
             s = self._process.readAll().data().decode('utf-8', "replace")
 
             if self._output is not None:
-                for x in s.split('\n'):
+                for x in s.split(os.linesep):
                     self._output.put(x)
         except Exception as e:
             logger_exception(e)
-- 
GitLab