From 5004b40e99036a0d9346dba6b5e6a4553de5a65e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 26 May 2020 01:30:17 +0200 Subject: Fix missing or incorrect ascii conversions when retrieving process output. Added controlled conversions to char* instead of automatic ascii conversions. The definition of -UTQT_NO_ASCII_CAST is no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/makedlg.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/makedlg.cpp') diff --git a/src/makedlg.cpp b/src/makedlg.cpp index 2037224..287e5c6 100644 --- a/src/makedlg.cpp +++ b/src/makedlg.cpp @@ -198,12 +198,7 @@ void MakeDlg::slotStop() */ void MakeDlg::slotShowOutput(FrontendToken* pToken) { - TQString sData; - - // GCC uses unicode quote characters - this should ensure that they are - // treated correctly by the text browser widget - sData = TQTextCodec::codecForLocale()->toUnicode(pToken->getData()); - m_pOutputBrowser->append(sData); + m_pOutputBrowser->append(pToken->getData()); } /** @@ -258,10 +253,7 @@ void MakeDlg::slotBrowserClicked(const TQString& sURL) void MakeDlg::slotAddError(const TQString& sFile, const TQString& sLine, const TQString& sText) { - TQString sUniText; - - sUniText = TQTextCodec::codecForLocale()->toUnicode(sText); - m_pErrorView->addRecord("", sFile, sLine, sUniText); + m_pErrorView->addRecord("", sFile, sLine, sText); } - + #include "makedlg.moc" -- cgit v1.2.1