aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/context_vanilla.cpp
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2018-07-18 09:27:46 +0000
committerAndre Heinecke <[email protected]>2018-07-18 09:27:46 +0000
commit16462c54b3503e77bc48c2486234531d7bc31b6d (patch)
tree7292c7409192b8c58eeb994facbf8e3863f30619 /lang/cpp/src/context_vanilla.cpp
parentjson: Fix crash on invalid json (diff)
downloadgpgme-16462c54b3503e77bc48c2486234531d7bc31b6d.tar.gz
gpgme-16462c54b3503e77bc48c2486234531d7bc31b6d.zip
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.
Diffstat (limited to 'lang/cpp/src/context_vanilla.cpp')
0 files changed, 0 insertions, 0 deletions