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/utils.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/utils.cpp') diff --git a/src/utils.cpp b/src/utils.cpp index 4409ac3..a132f03 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -1471,7 +1471,7 @@ void Utils::readStdOutRetriveIpsecAlgos() TQString Algo = msg.stripWhiteSpace().section(":",1,1).section(",",1,1).section("=",1,1); TQString MinKeySize = msg.stripWhiteSpace().section(":",1,1).section(",",3,3).section("=",1,1); TQString MaxKeySize = msg.stripWhiteSpace().section(":",1,1).section(",",4,4).section("=",1,1); - std::cout << "IKE encryption algo found: \"" << Algo << "\", Min: " << MinKeySize << ", Max: " << MaxKeySize << std::endl; + std::cout << "IKE encryption algo found: \"" << Algo.local8Bit() << "\", Min: " << MinKeySize.local8Bit() << ", Max: " << MaxKeySize.local8Bit() << std::endl; // TQStringList AlgoOptList = TQStringList::split("-",AlgoOpt); // for (TQStringList::Iterator it = AlgoOptList.begin(); it != AlgoOptList.end(); ++it) // { @@ -1896,12 +1896,12 @@ int Utils::dottedIpv4Netmask2NetmaskBytes(TQString dottedIpv4Netmask) TQString block2 = dec2bin(part2); TQString block3 = dec2bin(part3); - std::cout << "block0: " << block0 << std::endl; - std::cout << "block1: " << block1 << std::endl; - std::cout << "block2: " << block2 << std::endl; - std::cout << "block3: " << block3 << std::endl; + std::cout << "block0: " << block0.local8Bit() << std::endl; + std::cout << "block1: " << block1.local8Bit() << std::endl; + std::cout << "block2: " << block2.local8Bit() << std::endl; + std::cout << "block3: " << block3.local8Bit() << std::endl; block = block0 + block1 +block2 + block3; - std::cout << "block: " << block.ascii() << std::endl; + std::cout << "block: " << block.local8Bit() << std::endl; for (int i=0; i< 31;i++) { -- cgit v1.2.3