From e543ebc9363bb746a042577f314240af305e07b5 Mon Sep 17 00:00:00 2001 From: Slávek Banko Date: Sun, 16 Dec 2018 05:16:48 +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/networkinterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/networkinterface.cpp') diff --git a/src/networkinterface.cpp b/src/networkinterface.cpp index 25d01eb..b3fae36 100644 --- a/src/networkinterface.cpp +++ b/src/networkinterface.cpp @@ -379,7 +379,7 @@ TQString NetworkInterface::getGatewayOfDefaultInterface() while ( !stream.atEnd() ) { line = stream.readLine(); // line of text excluding '\n' and replace all white chars with one blank - std::cout << "line: \"" << line << "\"" << "\n"; + std::cout << "line: \"" << line.local8Bit() << "\"" << "\n"; if (line.simplifyWhiteSpace().section( ' ', 1, 1 ) == "00000000" ) { struct sockaddr_in name; @@ -436,7 +436,7 @@ bool NetworkInterface::inSameNetwork(TQString ip1,TQString Netmask1,TQString ip2 } else { - std::cout << "ip1: " << ip1.section( '.', 0, 2 ) << " , ip2: " << ip2.section( '.', 0, 2 ) << std::endl; + std::cout << "ip1: " << ip1.section( '.', 0, 2 ).local8Bit() << " , ip2: " << ip2.section( '.', 0, 2 ).local8Bit() << std::endl; if (ip1.section( '.', 0, 2 ) == ip2.section( '.', 0, 2 )) { if (Netmask1 == Netmask2) -- cgit v1.2.3