From b1833cf50dace47a755e575b1faa5372b7fb7d1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 13 Jan 2019 15:27:30 +0100 Subject: 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/bookwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/bookwidget.cpp b/src/bookwidget.cpp index c645524..7a23d70 100644 --- a/src/bookwidget.cpp +++ b/src/bookwidget.cpp @@ -83,7 +83,7 @@ void BookWidget::openURL(const KURL & url) m_stream.reset(new TQTextStream(&m_file)); m_textLines.reset(new TQStringList); TQString name(encoding()); - TQTextCodec *codec = TQTextCodec::codecForName(encoding()); // get the codec + TQTextCodec *codec = TQTextCodec::codecForName(encoding().latin1()); // get the codec if (codec) m_stream->setCodec(codec); //show progress dialog -- cgit v1.2.1