diff options
author | Werner Koch <[email protected]> | 2022-02-07 16:22:19 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2022-02-07 16:59:31 +0000 |
commit | 32b364b99b492c580330591640cdaa7407016733 (patch) | |
tree | 8a3f761c23e90f93b319fbcbb46b41b62093ad22 | |
parent | common: Fix creation of Windows socket directories. (diff) | |
download | gnupg-32b364b99b492c580330591640cdaa7407016733.tar.gz gnupg-32b364b99b492c580330591640cdaa7407016733.zip |
gpgconf: Print the used code pages on Windows with --show-configs
* tools/gpgconf.c (show_configs): Add some code
-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 45c23edbb..0783b4370 100644 --- a/tools/gpgconf.c +++ b/tools/gpgconf.c @@ -1381,6 +1381,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); |