summaryrefslogtreecommitdiffstats
path: root/src/makedlg.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-05-26 01:30:17 +0200
committerSlávek Banko <[email protected]>2020-05-26 01:30:17 +0200
commit5004b40e99036a0d9346dba6b5e6a4553de5a65e (patch)
treed7f9d99920bfff3b4a5719446ead1c3951ec5399 /src/makedlg.cpp
parent8bc51aef53e4d9de236ca4f19806b32da1cc0525 (diff)
downloadkscope-5004b40e99036a0d9346dba6b5e6a4553de5a65e.tar.gz
kscope-5004b40e99036a0d9346dba6b5e6a4553de5a65e.zip
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. Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src/makedlg.cpp')
-rw-r--r--src/makedlg.cpp14
1 files changed, 3 insertions, 11 deletions
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"