diff options
author | Werner Koch <[email protected]> | 2022-02-21 11:16:17 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2022-02-21 11:17:08 +0000 |
commit | cff68fe35918bf944a752008feb68713b198f05e (patch) | |
tree | 6480239d91c375718eaa37e0e2c78d1240748181 /tools/gpgconf.c | |
parent | scd:p15: Used extended mode already for RSA 2048 (diff) | |
download | gnupg-cff68fe35918bf944a752008feb68713b198f05e.tar.gz gnupg-cff68fe35918bf944a752008feb68713b198f05e.zip |
scd,w32: Print code pages with --show-configs
* tools/gpgconf.c (show_configs): Do it.
Diffstat (limited to 'tools/gpgconf.c')
-rw-r--r-- | tools/gpgconf.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/gpgconf.c b/tools/gpgconf.c index 2bb25840d..dbda45046 100644 --- a/tools/gpgconf.c +++ b/tools/gpgconf.c @@ -1419,6 +1419,15 @@ show_configs (estream_t outfp) show_version_gnupg (outfp, "### "); es_fprintf (outfp, "### Libgcrypt %s\n", gcry_check_version (NULL)); es_fprintf (outfp, "### GpgRT %s\n", gpg_error_check_version (NULL)); +#ifdef HAVE_W32_SYSTEM + es_fprintf (outfp, "### Codepages:"); + if (GetConsoleCP () != GetConsoleOutputCP ()) + es_fprintf (outfp, " %u/%u", GetConsoleCP (), GetConsoleOutputCP ()); + else + es_fprintf (outfp, " %u", GetConsoleCP ()); + es_fprintf (outfp, " %u", GetACP ()); + es_fprintf (outfp, " %u\n", GetOEMCP ()); +#endif es_fprintf (outfp, "###\n\n"); list_dirs (outfp, NULL, 1); |