From d31a084fc83d47eef6c6eb3aac76989da9692853 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 4 Jan 2023 11:15:00 +0900 Subject: Use utf8 instead of latin1/ascii as default. Address pyuic compatibility with python3. Signed-off-by: Michele Calgaro --- pyuic3/embed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyuic3/embed.cpp') diff --git a/pyuic3/embed.cpp b/pyuic3/embed.cpp index 3a66de3..c54104f 100644 --- a/pyuic3/embed.cpp +++ b/pyuic3/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, "pyuic: cannot load image file %s\n", (*it).latin1() ); + fprintf( stderr, "pyuic: cannot load image file %s\n", (*it).utf8() ); continue; } EmbedImage *e = new EmbedImage; -- cgit v1.2.3