Use UTF-8 to decode logs on Java 18 or newer
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
909114bf2a
commit
98adcc60a3
5 changed files with 15 additions and 6 deletions
|
@ -49,7 +49,7 @@ class LoggedProcess : public QProcess {
|
|||
enum State { NotRunning, Starting, FailedToStart, Running, Finished, Crashed, Aborted };
|
||||
|
||||
public:
|
||||
explicit LoggedProcess(QObject* parent = 0);
|
||||
explicit LoggedProcess(const QTextCodec* output_codec = QTextCodec::codecForLocale(), QObject* parent = 0);
|
||||
virtual ~LoggedProcess();
|
||||
|
||||
State state() const;
|
||||
|
@ -80,8 +80,8 @@ class LoggedProcess : public QProcess {
|
|||
QStringList reprocess(const QByteArray& data, QTextDecoder& decoder);
|
||||
|
||||
private:
|
||||
QTextDecoder m_err_decoder = QTextDecoder(QTextCodec::codecForLocale());
|
||||
QTextDecoder m_out_decoder = QTextDecoder(QTextCodec::codecForLocale());
|
||||
QTextDecoder m_err_decoder;
|
||||
QTextDecoder m_out_decoder;
|
||||
QString m_leftover_line;
|
||||
bool m_killed = false;
|
||||
State m_state = NotRunning;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue