diff --git a/src/Solver/CommandLine.py b/src/Solver/CommandLine.py
index c72cf7353f7f2c98f17843331aeeb6ecea4ee9ac..4afcbc9a24a91c49d640e33bdb4a06a2812b1100 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)