gpgme/lang/qt/src
Andre Heinecke 16462c54b3
qt: Handle encoding for diagnostics
* lang/qt/src/threadedjobmixin.cpp (fromEncoding)
(stringFromGpgOutput): New helpers.
(markupDiagnostics): Use it.

--
The Problem is that on my western windows system GnuPG
gets CP 437 as GetConsoleOutputCP and prints in that codepage.
In a W32 GUI Application we get 0 as GetConsoleOutputCP and 1252
with GetACP.

The only thing that seemed to somehow match was GetOEMCP but
that might just be luck and it might still be broken in
other windows languages.

This code is also used in Kleopatra so it might make sense
to make it public once it is demonstrated that it works on
most systems.
2018-07-18 11:27:46 +02:00
..
abstractimportjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
adduseridjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
changeexpiryjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
changeownertrustjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
changepasswdjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
cryptoconfig.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
cryptoconfig.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
dataprovider.cpp qt: Fix IODeviceDataProvider with Process 2017-11-14 14:28:32 +01:00
dataprovider.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
decryptjob.h qt: Undeprecate API that I find useful 2017-05-10 10:22:23 +02:00
decryptverifyjob.h qt: Undeprecate API that I find useful 2017-05-10 10:22:23 +02:00
defaultkeygenerationjob.cpp qt: Allow creation of default keys without name 2017-03-01 11:14:07 +01:00
defaultkeygenerationjob.h qt, cpp: Add additional copyright BSI notes 2017-04-25 13:03:49 +02:00
deletejob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
dn.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
dn.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
downloadjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
encryptjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
exportjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
gpgme_backend_debug.cpp cpp, qt: Include config.h 2016-09-23 15:25:51 +02:00
gpgme_backend_debug.h Add missing files to QGpgME 2016-04-02 08:06:45 -08:00
hierarchicalkeylistjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
importfromkeyserverjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
importjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
job.cpp qt: Add job for quick commands 2017-12-01 14:35:11 +01:00
job.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
keyformailboxjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
keygenerationjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
keylistjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
listallkeysjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
Makefile.am qt: Add job for quick commands 2017-12-01 14:35:11 +01:00
multideletejob.cpp qt: Add missing implementation of MultiDeleteJob 2016-10-11 19:56:55 +02:00
multideletejob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
protocol_p.h qt: Add job for quick commands 2017-12-01 14:35:11 +01:00
protocol.h qt: Add job for quick commands 2017-12-01 14:35:11 +01:00
qgpgme_export.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgme_version.h.in qt: Change license of export / version header 2016-11-03 10:09:04 +01:00
qgpgmeadduseridjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmeadduseridjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmebackend.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmebackend.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmechangeexpiryjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmechangeexpiryjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmechangeownertrustjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmechangeownertrustjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmechangepasswdjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmechangepasswdjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
QGpgmeConfig-w32.cmake.in.in qt, cpp: Add cmake config files for w32 2016-11-15 14:33:31 +01:00
QGpgmeConfig.cmake.in.in Fix cmake configuration files for MacOS 2017-01-11 15:49:00 +01:00
QGpgmeConfigVersion.cmake.in qt, cpp: Fix versioning in cmake config and header 2016-11-02 14:43:44 +01:00
qgpgmedecryptjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmedecryptjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmedecryptverifyjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmedecryptverifyjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmedeletejob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmedeletejob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmedownloadjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmedownloadjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmeencryptjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmeencryptjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmeexportjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmeexportjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmeimportfromkeyserverjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmeimportfromkeyserverjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmeimportjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmeimportjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmekeyformailboxjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmekeyformailboxjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmekeygenerationjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmekeygenerationjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmekeylistjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmekeylistjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmelistallkeysjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmelistallkeysjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmenewcryptoconfig.cpp qt: Fix filename handling in cryptoconfig 2018-04-26 14:11:19 +02:00
qgpgmenewcryptoconfig.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmequickjob.cpp qt: Don't use QDateTime::toSecsSinceEpoch 2017-12-11 17:08:38 +01:00
qgpgmequickjob.h qt: Add job for quick commands 2017-12-01 14:35:11 +01:00
qgpgmerefreshkeysjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmerefreshkeysjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmesecretkeyexportjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmesecretkeyexportjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmesignencryptjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmesignencryptjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmesignjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmesignjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmesignkeyjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmesignkeyjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmetofupolicyjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmetofupolicyjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmeverifydetachedjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmeverifydetachedjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmeverifyopaquejob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmeverifyopaquejob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmewkspublishjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
qgpgmewkspublishjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
quickjob.h qt: Add job for quick commands 2017-12-01 14:35:11 +01:00
refreshkeysjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
signencryptjob.h qt: Undeprecate API that I find useful 2017-05-10 10:22:23 +02:00
signjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
signkeyjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
specialjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
threadedjobmixin.cpp qt: Handle encoding for diagnostics 2018-07-18 11:27:46 +02:00
threadedjobmixin.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
tofupolicyjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
verifydetachedjob.h qt: Undeprecate API that I find useful 2017-05-10 10:22:23 +02:00
verifyopaquejob.h qt: Undeprecate API that I find useful 2017-05-10 10:22:23 +02:00
wkspublishjob.h Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00