Use C locale codec for decoding
This should correctly decode multi-byte non-UTF-8 text, such as Windows-936 (Simplified Chinese) Signed-off-by: Mitchell Skaggs <skaggsm333@gmail.com>
This commit is contained in:
parent
94df4ceb36
commit
3c4b45c9e7
@ -89,8 +89,8 @@ private:
|
||||
void changeState(LoggedProcess::State state);
|
||||
|
||||
private:
|
||||
QTextDecoder m_err_decoder = QTextDecoder(QTextCodec::codecForName("UTF-8"));
|
||||
QTextDecoder m_out_decoder = QTextDecoder(QTextCodec::codecForName("UTF-8"));
|
||||
QTextDecoder m_err_decoder = QTextDecoder(QTextCodec::codecForLocale());
|
||||
QTextDecoder m_out_decoder = QTextDecoder(QTextCodec::codecForLocale());
|
||||
bool m_killed = false;
|
||||
State m_state = NotRunning;
|
||||
int m_exit_code = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user