From 2656d3ee5b1a905d9fe4dd5c8b2d9737e775df31 Mon Sep 17 00:00:00 2001 From: Ingo Klöcker Date: Thu, 4 Jul 2024 14:36:04 +0200 Subject: cpp: Add safer member function returning text describing an error * lang/cpp/src/error.h, lang/cpp/src/context.cpp (class Error): New member function asStdString. -- Unlike asString the new function doesn't cache the value returned by gpgme_strerror_r. This ensures that on Windows the UTF-8 encoded text is returned for the main thread even if the function was called before for another thread. For other threads asStdString will still return the natively encoded error description until UTF-8 encoded error descriptions can be enabled for all threads (T7185). GnuPG-bug-id: 7188 --- NEWS | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index c317d2f3..0faf410e 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,9 @@ Noteworthy changes in version 1.24.0 (unrelease) * cpp: Provide information about designated revocation keys for a Key. [T7118] + * cpp: Add safer member function returning text describing an error. + [T5960] + * qt: Install headers for Qt 5 and Qt 6 in separate folders. [T7161] * qt: Allow reading the data to decrypt/encrypt/sign/verify directly from @@ -39,6 +42,7 @@ Noteworthy changes in version 1.24.0 (unrelease) cpp: Key::revocationKey NEW. cpp: Key::numRevocationKeys NEW. cpp: Key::revocationKeys NEW. + cpp: Error::asStdString NEW. qt: DecryptVerifyJob::setInputFile NEW. qt: DecryptVerifyJob::inputFile NEW. qt: DecryptVerifyJob::setOutputFile NEW. -- cgit