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 --- tdepasswd/tdepasswd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tdepasswd/tdepasswd.cpp') diff --git a/tdepasswd/tdepasswd.cpp b/tdepasswd/tdepasswd.cpp index 41567bf28..a6015eacc 100644 --- a/tdepasswd/tdepasswd.cpp +++ b/tdepasswd/tdepasswd.cpp @@ -52,7 +52,7 @@ int main(int argc, char **argv) TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); if (args->count()) - user = TQString(args->arg(0)); + user = TQString::fromLocal8Bit(args->arg(0)); /* You must be able to run "tdepasswd loginName" */ if ( !user.isEmpty() && user!=KUser().loginName() && !bRoot) -- cgit v1.2.1