From 6db0c5f228d12fc1a1ef861717d1dc4a3c9d6a6c Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 28 Nov 2018 23:51:20 +0900 Subject: Improved previous commit using local8Bit() in place of utf8() when a password is transmitted over pipes to other processes. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michele Calgaro Signed-off-by: Slávek Banko --- kdialog/kdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kdialog/kdialog.cpp') diff --git a/kdialog/kdialog.cpp b/kdialog/kdialog.cpp index 671be7465..fa2512077 100644 --- a/kdialog/kdialog.cpp +++ b/kdialog/kdialog.cpp @@ -281,7 +281,7 @@ static int directCommand(TDECmdLineArgs *args) { TQString result; bool retcode = Widgets::passwordBox(0, title, TQString::fromLocal8Bit(args->getOption("password")), result); - cout << result.utf8() << endl; + cout << result.local8Bit().data() << endl; return retcode ? 0 : 1; } -- cgit v1.2.1