From f4a39d2fde3ef72e32b296fdd783b31d4abfcb76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Mon, 10 Apr 2023 13:50:22 +0200 Subject: This happens en RHEL7 (gcc 4.8.5) but not on later distributions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot --- pytqlupdate3/main.cpp | 4 ++-- pytqlupdate3/metatranslator.cpp | 4 ++-- pytquic3/embed.cpp | 2 +- pytquic3/main.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pytqlupdate3/main.cpp b/pytqlupdate3/main.cpp index 6c708fe..f024072 100644 --- a/pytqlupdate3/main.cpp +++ b/pytqlupdate3/main.cpp @@ -129,13 +129,13 @@ int main( int argc, char **argv ) if ( !codec.isEmpty() ) tor.setCodec( codec ); if ( verbose ) - tqWarning( "Updating '%s'...", (*tf).utf8() ); + tqWarning( "Updating '%s'...", (*tf).local8Bit().data() ); merge( &tor, &fetchedTor, verbose ); if ( noObsolete ) tor.stripObsoleteMessages(); tor.stripEmptyContexts(); if ( !tor.save(*tf) ) - tqWarning( "pytqlupdate error: Cannot save '%s': %s", (*tf).utf8(), + tqWarning( "pytqlupdate error: Cannot save '%s': %s", (*tf).local8Bit().data(), strerror(errno) ); } if ( !metSomething ) { diff --git a/pytqlupdate3/metatranslator.cpp b/pytqlupdate3/metatranslator.cpp index f46ee9a..18b2b0d 100644 --- a/pytqlupdate3/metatranslator.cpp +++ b/pytqlupdate3/metatranslator.cpp @@ -173,9 +173,9 @@ bool TsHandler::fatalError( const TQXmlParseException& exception ) TQString msg; msg.sprintf( "Parse error at line %d, column %d (%s).", exception.lineNumber(), exception.columnNumber(), - exception.message().utf8() ); + exception.message().utf8().data() ); if ( tqApp == 0 ) - tqWarning( "XML error: %s", msg.utf8() ); + tqWarning( "XML error: %s", msg.local8Bit().data() ); else TQMessageBox::information( tqApp->mainWidget(), TQObject::tr("TQt Linguist"), msg ); diff --git a/pytquic3/embed.cpp b/pytquic3/embed.cpp index 9bf0071..afb28d0 100644 --- a/pytquic3/embed.cpp +++ b/pytquic3/embed.cpp @@ -149,7 +149,7 @@ void Uic::embed( TQTextStream& out, const char* project, const TQStringList& ima for ( it = images.begin(); it != images.end(); ++it ) { TQImage img; if ( !img.load( *it ) ) { - fprintf( stderr, "pytquic: cannot load image file %s\n", (*it).utf8() ); + fprintf( stderr, "pytquic: cannot load image file %s\n", (*it).local8Bit().data() ); continue; } EmbedImage *e = new EmbedImage; diff --git a/pytquic3/main.cpp b/pytquic3/main.cpp index 0158545..24fbbf3 100644 --- a/pytquic3/main.cpp +++ b/pytquic3/main.cpp @@ -193,7 +193,7 @@ int main( int argc, char * argv[] ) TQDomElement e = doc.firstChild().toElement(); if ( e.hasAttribute("version") && e.attribute("version").toDouble() > 3.3 ) { tqWarning( TQString("pytquic: File generated with too recent version of TQt Designer (%s vs. %s)"), - e.attribute("version").utf8(), TQT_VERSION_STR ); + e.attribute("version").local8Bit().data(), TQT_VERSION_STR ); return 1; } -- cgit v1.2.1