Unverified Commit 2089a57d authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Use UTF-8 Filenames for assuan sockets

The GnuPG API uses utf-8 for filenames and not the local8
bit encoding as QFile::encodeName would do.
parent 9f3fde75
Pipeline #135700 passed with stage
in 1 minute and 48 seconds
......@@ -585,7 +585,7 @@ void Command::Private::run()
}
#ifndef HAVE_ASSUAN2
err = assuan_socket_connect(&naked_ctx, QFile::encodeName(socketName).constData(), -1);
err = assuan_socket_connect(&naked_ctx, socketName.toUtf8().constData(), -1);
#else
{
assuan_context_t naked_ctx = nullptr;
......@@ -599,7 +599,7 @@ void Command::Private::run()
ctx.reset(naked_ctx);
}
err = assuan_socket_connect(ctx.get(), QFile::encodeName(socketName).constData(), -1, 0);
err = assuan_socket_connect(ctx.get(), socketName.toUtf8().constData(), -1, 0);
#endif
if (err) {
qDebug("UI server not running, starting it");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment