From ccee21ee3f881fcdae3a56876ca33b558e5bf502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 5 Jan 2019 19:59:08 +0100 Subject: [PATCH] Added controlled conversions to char* instead of automatic ascii conversions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- cmdline/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdline/main.cpp b/cmdline/main.cpp index 466af4d..c04c433 100644 --- a/cmdline/main.cpp +++ b/cmdline/main.cpp @@ -101,7 +101,7 @@ int main(int argc, char *argv[]) } TQTextStream stream(&passFile); credentials.username = args->getOption("adminusername"); - credentials.password = stream.readLine(); + credentials.password = stream.readLine().utf8(); passFile.close(); } else {