From 381182aa401ba76a4a011a9dd92d14e831a08851 Mon Sep 17 00:00:00 2001 From: nils Date: Wed, 27 Jan 2010 20:12:42 +0000 Subject: fixed the keydb not found error, if umlaute are in pathname git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@247 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- context.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/context.cpp b/context.cpp index af3df86..1c48a1b 100644 --- a/context.cpp +++ b/context.cpp @@ -66,8 +66,8 @@ Context::Context() #endif QString gpgKeys = appPath + "/keydb"; err = gpgme_ctx_set_engine_info(mCtx, GPGME_PROTOCOL_OpenPGP, - gpgBin.toAscii().constData(), - gpgKeys.toAscii().constData()); + gpgBin.toUtf8().constData(), + gpgKeys.toUtf8().constData()); checkErr(err); @@ -151,9 +151,11 @@ bool Context::exportKeys(QList *uidList, QByteArray *outBuffer) gpgme_key_t Context::getKeyDetails(QString uid) { - gpgme_error_t err; +// gpgme_error_t err; gpgme_key_t key; + qDebug() << "before"; + /*gpgme_op_keylist_start (mCctx, uid.toAscii().constData(), 0); gpgme_op_keylist_next (mCtx, &key); qDebug() << key->subkeys->keyid); @@ -164,7 +166,7 @@ gpgme_key_t Context::getKeyDetails(QString uid) gpgme_key_release (key);*/ gpgme_get_key (mCtx, uid.toAscii().constData(), &key, 1); - + qDebug() << "after"; return key; } -- cgit v1.2.3